NPE in UPnP Web Console Plugin (again)
--------------------------------------
Key: FELIX-3428
URL: https://issues.apache.org/jira/browse/FELIX-3428
Project: Felix
Issue Type: Bug
Components: Web Console
Affects Versions: webconsole-upnp-plugin-1.0.0
Reporter: Valentin Valchev
Assignee: Valentin Valchev
Priority: Blocker
Fix For: webconsole-upnp-plugin-1.0.2
Attachments: my.bundles.upnp.osgi.printer_1.0.0.201203131224_bad.jar
If there is invalid UPnP device, that has no registration properties, the UPnP
Plugin will throw:
upnp>$java.lang.NullPointerException
at
org.apache.felix.webconsole.plugins.upnp.internal.ControlServlet.deviceTreeToJSON(ControlServlet.java:236)
at
org.apache.felix.webconsole.plugins.upnp.internal.ControlServlet.doPost(ControlServlet.java:140)
at
org.apache.felix.webconsole.plugins.upnp.internal.WebConsolePlugin.doPost(WebConsolePlugin.java:102)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:815)
Besides that, the valid devices will not be rendered in the web console too. So
iyou need to have ONE bad UPnP device, to break everything.
--
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