mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8319704: LogTagSet::set_output_level() should not accept NULL as LogOutput
Reviewed-by: jsjolen, dholmes
This commit is contained in:
parent
6f863b2a1b
commit
4d650fe85f
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user