Commons Digester
  1. Commons Digester
  2. DIGESTER-66

setting the log level to debug throws NPE

    Details

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

      Operating System: All
      Platform: All

      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

        Activity

        Hide
        Craig McClanahan added a comment -

        Fixed in nightly build 20030817.

        Show
        Craig McClanahan added a comment - Fixed in nightly build 20030817.

          People

          • Assignee:
            Unassigned
            Reporter:
            r1akhil
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development