Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
scr-1.0.8
-
None
Description
When a ComponentActivatorTask is about to be run, it checks whether the component declaring bundle is active or not. If the component has already been destroyed, getting the bundle from the component throws a NullPointerException. Though, this exception is caught, it is nasty and the logged message does not reflect the actual cause for the problem.
The ComponentActivatorTask.run method must therefore first check whether the component as already been destroyed before checking for the bundle state. If the component has already been destroyed, the task cannot run anyway.