[ 
https://issues.apache.org/jira/browse/SLING-12479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897605#comment-17897605
 ] 

Konrad Windszus commented on SLING-12479:
-----------------------------------------

Workaround: Call the Web Console plugin via 
{{/system/console/osgi-installer-config-printer?pid=test}}. Although this PID 
is invalid it prevents the NPE.

> osgi-installer-config-printer throws NPE when not called with request 
> parameter pid
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-12479
>                 URL: https://issues.apache.org/jira/browse/SLING-12479
>             Project: Sling
>          Issue Type: Bug
>          Components: Installer
>    Affects Versions: Installer Configuration Factory 1.4.4
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Due to the logic added with SLING-11864 the following NPE is thrown when the 
> web console plugin is called without the request parameter {{pid}}.
> The following stacktrace is emitted:
> {code}
> ava.lang.NullPointerException
>       at java.base/java.lang.String.concat(String.java:1937)
>       at 
> org.apache.sling.installer.factories.configuration.impl.ConfigTaskCreator.getDefaultProperties(ConfigTaskCreator.java:186)
>       at 
> org.apache.sling.installer.factories.configuration.impl.ConfigurationSerializerWebConsolePlugin.service(ConfigurationSerializerWebConsolePlugin.java:123)
>       at 
> org.apache.felix.webconsole.internal.legacy.WebConsolePluginAdapter.renderContent(WebConsolePluginAdapter.java:128)
>       at 
> org.apache.felix.webconsole.AbstractWebConsolePlugin.doGet(AbstractWebConsolePlugin.java:182)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to