Skip to content

Commit 6d43401

Browse files
committed
JIRA WDT-34 Avoid including null loggers in list
1 parent 0310d11 commit 6d43401

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/java/oracle/weblogic/deploy/logging/PlatformLogger.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,9 @@ public static List<Logger> getLoggers() {
542542
while (e.hasMoreElements()) {
543543
String loggerName = e.nextElement();
544544
Logger logger = manager.getLogger(loggerName);
545-
topList.add(logger);
545+
if(logger != null) {
546+
topList.add(logger);
547+
}
546548
}
547549
return topList;
548550
}

0 commit comments

Comments
 (0)