Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2244

org.apache.logging.log4j.core.lookup.EnvironmentLookup may throw NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Core
    • None

    Description

      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.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: