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

NullPointerException in JMX Configurator getLoggerLevel

    XMLWordPrintable

Details

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

    Description

      NullPointerException in JMX Configurator getLoggerLevel:

      on line 111, logger.getLevel() can be null.

      in ch.qos.logback.classic.jmx.Configurator, lines 110 - 114, replace

      if (logger != null) {
      return logger.getLevel().toString();
      } else {
      return EMPTY;
      }

      with

      if (logger != null && logger.getLevel() != null) {
      return logger.getLevel().toString();
      } else {
      return EMPTY;
      }

      Attachments

        Activity

          People

            logback-dev Logback dev list
            optagee Jean-Luc Geering
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: