diff --git a/src/hotspot/share/logging/logOutputList.cpp b/src/hotspot/share/logging/logOutputList.cpp index 7277d1889c7..6367577b1b0 100644 --- a/src/hotspot/share/logging/logOutputList.cpp +++ b/src/hotspot/share/logging/logOutputList.cpp @@ -52,6 +52,7 @@ void LogOutputList::wait_until_no_readers() const { } void LogOutputList::set_output_level(LogOutput* output, LogLevelType level) { + assert(output != nullptr, "LogOutput is null"); LogOutputNode* node = find(output); if (level == LogLevel::Off && node != nullptr) { remove_output(node);