Michael Lipp created FELIX-6152:
-----------------------------------

             Summary: NPE when logging with Felix Log
                 Key: FELIX-6152
                 URL: https://issues.apache.org/jira/browse/FELIX-6152
             Project: Felix
          Issue Type: Bug
          Components: Log Service
    Affects Versions: log-1.2.0
            Reporter: Michael Lipp


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|https://github.com/eclipse/jetty.project/blob/afcf563148970e98786327af5e07c261fda175d3/jetty-util/src/main/java/org/eclipse/jetty/util/log/Slf4jLog.java#L77]";
 of info(msg) to info(msg, Object[0])

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to