Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
webconsole-4.2.0
-
None
Description
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