logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lemasle (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (LOG4J2-1227) NullPointerException in MapLookup.lookup is the event is null
Date Thu, 03 Mar 2016 09:22:18 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Olivier Lemasle reopened LOG4J2-1227:
-------------------------------------

Sorry, I did an error in unit tests - see pull request #26.
Thanks!

> NullPointerException in MapLookup.lookup is the event is null
> -------------------------------------------------------------
>
>                 Key: LOG4J2-1227
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1227
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4, 2.4.1, 2.5
>            Reporter: Olivier Lemasle
>            Assignee: Matt Sicker
>             Fix For: 2.6
>
>
> A NullPointerException is thrown in org.apache.logging.log4j.core.lookup.MapLookup.lookup,
when the event is null and the map is not null.
> The event can indeed be null, for example if used from StrSubstitutor, with the method
replace(final StringBuilder source).
> Exception:
> java.lang.NullPointerException: null
> 	at org.apache.logging.log4j.core.lookup.MapLookup.lookup(MapLookup.java:121)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message