[ 
https://issues.apache.org/jira/browse/FELIX-342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521771
 ] 

Felix Meschberger commented on FELIX-342:
-----------------------------------------

Refactored how events are fired: Now the PID and Factory PID for the Event are 
given as parameters and not as ConfigurationImpl object which in fact may be 
null in case of a non-existing configuration for a newly registered 
ManagedService.

Fixed in Rev. 568514.

> NullPointerException after updating a ManagedService when no Configuration 
> exists
> ---------------------------------------------------------------------------------
>
>                 Key: FELIX-342
>                 URL: https://issues.apache.org/jira/browse/FELIX-342
>             Project: Felix
>          Issue Type: Bug
>          Components: Configuration Admin
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 1.0.0
>
>
> Tom Remoleur reported the following issue:
> In ConfigurationManager$ManagedServiceUpdate task : if the configuration  
> is null (by exemple first registration of a ManagedService), at the end,  
> you fire a configuration event but the  
> ConfigurationManager$FireConfigurationEvent task try to accede to  
> configuration to get the pid (line 1261) => NPE

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to