ConfigurationManager.canReceive may throw NullPointerException
--------------------------------------------------------------
Key: FELIX-3233
URL: https://issues.apache.org/jira/browse/FELIX-3233
Project: Felix
Issue Type: Bug
Components: Configuration Admin
Affects Versions: configadmin-1.2.8
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: configadmin-1.4.0
The ConfigurationManager.canReceive method checks whether a bundle can receive
configuration bound to a certain location. This method may throw a
NullPointerException if the bundle is null. This may be the case if the service
has been unregistered between the event causing the canReceive to the called
and the asynchronous handling.
For example:
* Register ManagedService
* Update Configuration
* Unregister ManagedService
* --> asynchronous processing of configuration update also calling canReceive
At the point in time of processing the configuration update, the service has
been unregistered and ServiceReference.getBundle() returns null. Callers of
canReceive should be fixed to ensure the bundle is not null.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira