[
https://issues.apache.org/jira/browse/SLING-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13586800#comment-13586800
]
Ian Boston commented on SLING-2754:
-----------------------------------
Not entirely certain how this should be fixed. Anyone ?
> org.apache.sling.installer.core.impl.tasks.RefreshOptionalPackagesTask has NPE
> ------------------------------------------------------------------------------
>
> Key: SLING-2754
> URL: https://issues.apache.org/jira/browse/SLING-2754
> Project: Sling
> Issue Type: Bug
> Components: Installer
> Affects Versions: Installer Core 3.4.6
> Reporter: Ian Boston
>
> In org.apache.sling.installer.core.impl.tasks.RefreshOptionalPackagesTask
> there is
> line 62
> final PackageAdmin packageAdmin = null;
> followed by
> line 78
> exports = packageAdmin.getExportedPackages( ( Bundle ) null );
> line 117
> packageAdmin.refreshPackages(refreshBundles.toArray(new
> Bundle[refreshBundles.size()]));
> Which can only cause a NPE when its executed.
--
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