[logback-dev] svn commit: r945 - logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic
noreply.seb at qos.ch
noreply.seb at qos.ch
Fri Nov 17 15:43:24 CET 2006
Author: seb
Date: Fri Nov 17 15:43:23 2006
New Revision: 945
Modified:
logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/LoggerContext.java
Log:
bug fix
Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/LoggerContext.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/LoggerContext.java (original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/LoggerContext.java Fri Nov 17 15:43:23 2006
@@ -221,8 +221,10 @@
private void notifyListeners(EventType eventType) {
LogbackEvent event = new LogbackEvent(this, eventType);
- for (ContextListener listener: listenerList) {
- listener.update(event);
+ if (listenerList != null) {
+ for (ContextListener listener: listenerList) {
+ listener.update(event);
+ }
}
}
}
More information about the logback-dev
mailing list