Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
webconsole-upnp-plugin-1.0.2
-
None
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)
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.