From 4d650fe85fe780cf69070184d049a423cbc7d20e Mon Sep 17 00:00:00 2001 From: Thomas Stuefe Date: Mon, 13 Nov 2023 08:31:06 +0000 Subject: [PATCH] 8319704: LogTagSet::set_output_level() should not accept NULL as LogOutput Reviewed-by: jsjolen, dholmes --- src/hotspot/share/logging/logOutputList.cpp | 1 + 1 file changed, 1 insertion(+) 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);