[ 
https://issues.apache.org/jira/browse/ARIES-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Watson closed ARIES-990.
-------------------------------


Thanks for the fix.
                
> NPE while establishing the root subsystem
> -----------------------------------------
>
>                 Key: ARIES-990
>                 URL: https://issues.apache.org/jira/browse/ARIES-990
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>            Reporter: Thomas Watson
>            Assignee: John Ross
>
> I got the following NPE while the subsystem core was activating and 
> establishing the root subsystem.  I think at the time many bundles in the 
> 'root' subsystem may have been getting deleted:
> >Caused by: java.lang.NullPointerException
> >     at 
> > org.apache.aries.subsystem.core.internal.ResourceHelper.getIdentityAttribute(ResourceHelper.java:62)
> >     at 
> > org.apache.aries.subsystem.core.internal.ResourceHelper.getTypeAttribute(ResourceHelper.java:92)
> >     at 
> > org.apache.aries.subsystem.core.internal.ResourceInstaller.newInstance(ResourceInstaller.java:27)
> >     at 
> > org.apache.aries.subsystem.core.internal.Subsystems.populateRootSubsystem(Subsystems.java:173)
> >     at 
> > org.apache.aries.subsystem.core.internal.Subsystems.getRootSubsystem(Subsystems.java:131)
> There is a TODO in Subsystems.populateRootSubsystem that I think is showing 
> itself in this NPE.  In the following line of code the bundle revision may be 
> null if the bundle got uninstalled:
>   BundleRevision revision = bundle.adapt(BundleRevision.class);
> I think a check for null is needed here.

--
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