Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3387

NPE in org.apache.sling.jcr.registration.AbstractRegistrationSupport.getName

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Registration 1.0.0
    • JCR Registration 1.0.0
    • JCR
    • None

    Description

      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)

      Attachments

        1. SLING-3387.patch
          1 kB
          Michael Dürig

        Activity

          People

            fmeschbe Felix Meschberger
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: