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

Web Console Event plugin might cease operation if Event property is null

    XMLWordPrintableJSON

Details

    Description

      With OSGi r4.2 the Event class can be created not only with Dictionary but also with a Map.

      Map allows the users to post dictionary where some values are null. In that case the event plugin will fail with the following exception and stop processing other events:

      java.lang.NullPointerException
      	at org.apache.felix.webconsole.plugins.event.internal.PluginServlet.eventJson(PluginServlet.java:359)
      	at org.apache.felix.webconsole.plugins.event.internal.PluginServlet.renderJSON(PluginServlet.java:184)
      	at org.apache.felix.webconsole.plugins.event.internal.PluginServlet.doGet(PluginServlet.java:208)
      

      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: