Michael Dürig created SLING-3387:
------------------------------------

             Summary: NPE in 
org.apache.sling.jcr.registration.AbstractRegistrationSupport.getName
                 Key: SLING-3387
                 URL: https://issues.apache.org/jira/browse/SLING-3387
             Project: Sling
          Issue Type: Bug
          Components: JCR
    Affects Versions: JCR Registration 1.0.0
            Reporter: Michael Dürig


org.apache.sling.jcr.registration.AbstractRegistrationSupport#getName refers to 
the class' logger without checking for null. It should probably rather us the 
log() method which does exactly that.

12.11.2013 10:14:37.010 ERROR [CM Event Dispatcher (Fire ConfigurationEvent: 
pid=org.apache.sling.jcr.jackrabbit.server.RmiRegistrationSupport)] 
org.apache.sling.jcr.registration 
[org.apache.sling.jcr.jackrabbit.server.RmiRegistrationSupport] The 
bindRepository method has thrown an exception (java.lang.NullPointerException) 
java.lang.NullPointerException
at 
org.apache.sling.jcr.registration.AbstractRegistrationSupport.getName(AbstractRegistrationSupport.java:217)
at 
org.apache.sling.jcr.registration.AbstractRegistrationSupport.bindRepository(AbstractRegistrationSupport.java:306)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to