[
https://issues.apache.org/jira/browse/FELIX-6514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Raymond Augé resolved FELIX-6514.
---------------------------------
Resolution: Fixed
Fixed at
https://github.com/apache/felix-dev/commit/f15d77759b0448a7456b9cfc067900c4f47a52e3
> NPE on ConfigurationEvent
> -------------------------
>
> Key: FELIX-6514
> URL: https://issues.apache.org/jira/browse/FELIX-6514
> Project: Felix
> Issue Type: Bug
> Components: Configuration Admin
> Reporter: Raymond Augé
> Assignee: Raymond Augé
> Priority: Major
> Fix For: configadmin-1.9.24
>
> Attachments: Screenshot from 2022-03-24 21-25-04.png
>
>
> I'm seeing strange NPE in FireConfigurationEvent
> {code}
> 2022-03-24 19:21:05.693 ERROR [CM Event Dispatcher (Fire ConfigurationEvent:
> pid=foo)][LogService:93] Unexpected problem executing task
> {org.osgi.service.cm.ConfigurationAdmin}={osgi.command.scope=cm,
> service.description=Configuration Admin Service Specification 1.6
> Implementation, service.id=52, service.bundleid=58, service.scope=bundle,
> osgi.command.function=[getConfiguration,getFactoryConfiguration,listConfigurations,createFactoryConfiguration],
> service.vendor=The Apache Software Foundation, config.plugins=,
> service.pid=org.apache.felix.cm.ConfigurationAdmin}
> java.lang.NullPointerException: null
> at
> org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:1686)
> ~[bundleFile:?]
> at
> org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1662)
> ~[bundleFile:?]
> at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:122)
> ~[bundleFile:?]
> at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:84)
> [bundleFile:?]
> at java.lang.Thread.run(Thread.java:750) [?:1.8.0_322]
> {code}
> It appears as though there are empty (null) positions in the
> {{listenerProvider}} array.
> !Screenshot from 2022-03-24 21-25-04.png!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)