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

ch.qos.logback.core.sift.SiftingAppenderBase#stop method reports NullPointerException

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.3.0
    • 1.2.11, 1.3.0-alpha16
    • logback-core
    • jdk1.8.0_192

      CentOS Linux release 7.3.1611

    Description

      The `ch.qos.logback.core.sift.SiftingAppenderBase#stop` method lacks `isStarted()` judgment. If this method is called without `start()`, a `NullPointerException` will be reported because `appenderTracker` is not initialized. It can be solved by adding `isStarted()` judgment.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: