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

PropertiesConfiguration.parseAppenderFilters NPE when parsing properties file filters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.16.0
    • 2.17.1
    • Configurators
    • None

    Description

      When parsing appender filters configured in the properties file for example:

      log4j.appender.LOG_REQUEST_START_DB=my.appender.class
      log4j.appender.LOG_REQUEST_START_DB.filter.ID=my.filter.class

      a NullPointerException is thrown on line 564 of org.apache.log4j.config.PropertiesConfiguration. The next variable is always null at that point, from what appears to be a bug in the if condition above (looks like it should be head == null instead of head != null).

       

      Note: this is using the log4j1.compatibility=true property

      Attachments

        Activity

          People

            Unassigned Unassigned
            coredumped Fábio Constantino
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: