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

Logger.setLevel(null) will throw an NPE if the logger in question previously has a non-null level

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 0.9.12
    • 0.9.9, 0.9.10, 0.9.11, 0.9.12
    • logback-classic
    • None

    Description

      This bug causes LBCLASSIC-79 as symptom. To reproduce

      Logger logger = LoggerFactory.getLogger("x");
      logger.setLevel(Level.DEBUG)
      logger.setLevel(null); // throws NPE

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            ceki Ceki Gülcü
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: