[
https://issues.apache.org/jira/browse/FELIX-3946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Felix Meschberger closed FELIX-3946.
------------------------------------
Close after release
> NullPointerException in BundleServlet.bundleDetails when not called through
> HTTP
> --------------------------------------------------------------------------------
>
> Key: FELIX-3946
> URL: https://issues.apache.org/jira/browse/FELIX-3946
> Project: Felix
> Issue Type: Bug
> Components: Web Console
> Affects Versions: webconsole-4.2.0
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: webconsole-4.2.0
>
>
> With the introduction of the Inventory bundle and the migration of
> ConfigurationStatusPrinter to InventoryPrinter, these services may be called
> through other channels than through the Web Console over HTTP.
> Thus the appRoot and pluginRoot parameters to the BundleServlet.writeJSON
> method may be null and therefore the following code in the bundleDetails
> method throws a NullPointerException:
> > bundleInfoDetails(jw, bundle, pluginRoot.substring(0,
> > pluginRoot.lastIndexOf("/")), locale);
> A number of fixes are required:
> * Prevent NPE at this code location
> * Clarify BundleInfoProvider interface that webConsoleRoot may be null
> * Fix ServicesUsedInfoProvider to create VALUE type BundleInfo if
> webConsoleRoot is null
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira