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

Carsten Ziegeler commented on SLING-2754:
-----------------------------------------

This code is not used, it's a first implementation for SLING-2060 but due to 
some refactoring of the refresh package handling within the installer, I didn't 
update this task but just made the source code compile :)

So nothing to fix here for now, but I made this depending on SLING-2060 to not 
forget this one
                
> 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

Reply via email to