Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-66

setting the log level to debug throws NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      22131

      Description

      Using Log4J:
      set the log4j.rootCategory=DEBUG

      Use SetProperties rule
      get NPE on calling digester.parse()
      at following line:
      org.apache.commons.digester.SetPropertiesRule.begin(SetPrpertiesRule.java:256)

      This is becuase the code within log.isDebugEnabled()

      {...}

      uses top.getClass()... but 'top' can also be null becuase it peeked from
      digester

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              r1akhil@in.ibm.com r1akhil
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: