You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/02/10 16:55:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16359508#comment-16359508 ]
ASF subversion and git services commented on LOG4J2-2244:
---------------------------------------------------------
Commit 585d5ca8d6b101603599385982609229ff8ee7bf in logging-log4j2's branch refs/heads/master from [~garydgregory]
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=585d5ca ]
[LOG4J2-2244] org.apache.logging.log4j.core.lookup.EnvironmentLookup may
throw NPE.
> 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
>
> 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)