felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-3233) ConfigurationManager.canReceive may throw NullPointerException
Date Thu, 17 Nov 2011 11:18:51 GMT

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

Felix Meschberger resolved FELIX-3233.

    Resolution: Fixed

Fixed in Rev. 1203153
> 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


View raw message