Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Duplicate
-
log-1.2.0
-
None
-
None
Description
Calling the logger like this:
log.info("Test", new Object[0]);
causes a NPE:java.lang.NullPointerException
at org.apache.felix.log.LoggerImpl.format(LoggerImpl.java:335)
at org.apache.felix.log.LoggerImpl.info(LoggerImpl.java:164)
While you wouldn't explicitly write code like this, wrappers such as org.eclipse.jetty.util.log.Slf4jLog may introduce a "mapping" of info(msg) to info(msg, Object[0])
Attachments
Issue Links
- Dependent
-
FELIX-6088 NPE in LoggerImpl when formatted logger called with null or empty arguments
- Resolved