Valentin Valchev created FELIX-4573:
---------------------------------------
Summary: Web Console Event plugin might ceise operation if Event
property is null
Key: FELIX-4573
URL: https://issues.apache.org/jira/browse/FELIX-4573
Project: Felix
Issue Type: Bug
Components: Web Console
Affects Versions: webconsole-event-plugin-1.1.0
Reporter: Valentin Valchev
Priority: Critical
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:
{code}
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)
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)