You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2018/02/10 19:19:00 UTC
[jira] [Closed] (LOG4J2-2244)
org.apache.logging.log4j.core.lookup.EnvironmentLookup may throw NPE
[ https://issues.apache.org/jira/browse/LOG4J2-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory closed LOG4J2-2244.
--------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
In git master.
> org.apache.logging.log4j.core.lookup.EnvironmentLookup may throw NPE
> --------------------------------------------------------------------
>
> Key: LOG4J2-2244
> URL: https://issues.apache.org/jira/browse/LOG4J2-2244
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Reporter: Gary Gregory
> Assignee: Gary Gregory
> Priority: Major
> Fix For: 3.0.0
>
>
> The class {{org.apache.logging.log4j.core.lookup.EnvironmentLookup}} may throw an NPE when calling {{System.getenv()}} if the {{key}} argument is null.
> The Javadoc for our {{lookup}} method states that a key may be null, so check for that condition instead of throwing an NPE.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)