[
https://jira.jboss.org/jira/browse/JBOSGI-295?page=com.atlassian.jira.plu...
]
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