[jboss-osgi-issues] [JBoss JIRA] Updated: (JBOSGI-295) NullPointerException in ExportedPackageHelper constructor
Andreas Scheerer (JIRA)
jira-events at lists.jboss.org
Wed Feb 24 20:03:10 EST 2010
[ https://jira.jboss.org/jira/browse/JBOSGI-295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Scheerer updated JBOSGI-295:
------------------------------------
Priority: Minor (was: Major)
> NullPointerException in ExportedPackageHelper constructor
> ---------------------------------------------------------
>
> Key: JBOSGI-295
> URL: https://jira.jboss.org/jira/browse/JBOSGI-295
> Project: JBoss OSGi
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jboss-osgi-spi
> Reporter: Andreas Scheerer
> Priority: Minor
>
> In case of a null BundleContext the constructor org.jboss.osgi.spi.util.ExportedPackageHelper.ExportedPackageHelper(BundleContext) throws a NullPointerException. I think an IllegalStateException should be thrown instead.
> Currently this NullPointerException occurs when the EmbeddedBundle.start() method is called for a bundle having a higher startlevel than the active framework start level. In this case the expression bundle.getBundleContext() will return null (passed to the ExportedPackageHelper) even if the bundle.start() was invoked before.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-osgi-issues
mailing list