Valentin Valchev created FELIX-3595:
---------------------------------------
Summary: NPE in ControlServlet.addingService
Key: FELIX-3595
URL: https://issues.apache.org/jira/browse/FELIX-3595
Project: Felix
Issue Type: Bug
Components: Web Console
Affects Versions: webconsole-upnp-plugin-1.0.2
Reporter: Valentin Valchev
Assignee: Valentin Valchev
Priority: Minor
Fix For: webconsole-upnp-plugin-1.0.4
There is a NPE in the UPnP plugin:
{code}
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira