Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-365

Logger.setLevel(null) may throw NPE

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 0.9.13
    • 0.9.12
    • None
    • None

    Description

      When setting null for logger which has childes with null levels then NPE is thrown:

      Caused by: java.lang.NullPointerException
      at ch.qos.logback.classic.Logger.handleParentLevelChange(Logger.java:216) [classes/:na]
      at ch.qos.logback.classic.Logger.setLevel(Logger.java:200) [classes/:na]
      ....

      Attachments

        Activity

          People

            logback-dev Logback dev list
            mj mateusz jedruch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: