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

NPE in UPnP Web Console Plugin (again)

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: