[logback-dev] [JIRA] Updates for LOGBACK-1644: ch.qos.logback.core.sift.SiftingAppenderBase#stop method reports NullPointerException

QOS.CH (JIRA) noreply-jira at qos.ch
Tue Jun 14 11:47:00 CEST 2022


logback / LOGBACK-1644 [Open]
ch.qos.logback.core.sift.SiftingAppenderBase#stop method reports NullPointerException

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/LOGBACK-1644

==============================
 Issue created
------------------------------

Changjun Xiao created this issue on 14/Jun/22 11:35 AM
Summary:              ch.qos.logback.core.sift.SiftingAppenderBase#stop method reports NullPointerException
Issue Type:           Bug
Affects Versions:     1.2.11, 1.3.0-alpha16
Assignee:             Logback dev list
Attachments:          SiftingAppenderBase-NullPointerException.txt
Components:           logback-core
Created:              14/Jun/22 11:35 AM
Environment:
  jdk1.8.0_192
  
  CentOS Linux release 7.3.1611
Labels:               siftingAppender
Priority:             Major
Reporter:             Changjun Xiao
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.


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the logback-dev mailing list