[logback-dev] [Bug 146] New: LoggerContext.getLogger(final String name) doesn't check if name is null

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Sat Apr 12 03:15:42 CEST 2008


http://bugzilla.qos.ch/show_bug.cgi?id=146

           Summary: LoggerContext.getLogger(final String name) doesn't check
                    if name is null
           Product: logback-classic
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: Other
        AssignedTo: logback-dev at qos.ch
        ReportedBy: info at oliverlietz.de


hence loggerCache.get(name) could fail (NPE) in line 117:


java.lang.NullPointerException
        at java.util.Hashtable.get(Hashtable.java:336)
        at
ch.qos.logback.classic.LoggerContext.getLogger(LoggerContext.java:117)
        at
ch.qos.logback.classic.LoggerContext.getLogger(LoggerContext.java:44)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:88)
        at org.apache.sling.osgi.log.LogSupport.getLogger(LogSupport.java:322)
        at org.apache.sling.osgi.log.LogSupport.logOut(LogSupport.java:333)
        at
org.apache.sling.osgi.log.LogSupport.fireLogEvent(LogSupport.java:167)
        at
org.apache.sling.osgi.log.LogSupport.bundleChanged(LogSupport.java:216)
        at
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:690)
        at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:619)
        at
org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:816)
        at
org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:42)
        at
org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:94)
        at java.lang.Thread.run(Thread.java:613)


-- 
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the logback-dev mailing list