Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3595

NPE in ControlServlet.addingService

    XMLWordPrintableJSON

Details

    Description

      There is a NPE in the UPnP plugin:

      
      

      java.lang.NullPointerException
      at org.apache.felix.webconsole.plugins.upnp.internal.ControlServlet.addingService(ControlServlet.java:533)
      at org.apache.felix.webconsole.plugins.upnp.internal.Activator.addingService(Activator.java:88)
      at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:909)

      {/code}

      The problems can occur when the plugin is starting. The service tracker collects already registered UPnP devices, and then notifies the customizer.

      If UPnP device is removed, while the tracker is notifying the customizer it is possible to get a 'null' service, for the reference, we are being notified.

      Attachments

        Activity

          People

            v_valchev Valentin Valchev
            v_valchev Valentin Valchev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: