[
https://issues.apache.org/jira/browse/FELIX-6152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Raymond Augé resolved FELIX-6152.
---------------------------------
Resolution: Duplicate
> 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
> Priority: Blocker
>
> 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
(v8.3.4#803005)