You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2017/10/19 07:32:01 UTC
[jira] [Updated] (FELIX-5686) NPE in ConfigInstaller on
ConfigDelete
[ https://issues.apache.org/jira/browse/FELIX-5686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated FELIX-5686:
-----------------------------------
Fix Version/s: (was: fileinstall-3.7.0)
fileinstall-3.6.4
> NPE in ConfigInstaller on ConfigDelete
> --------------------------------------
>
> Key: FELIX-5686
> URL: https://issues.apache.org/jira/browse/FELIX-5686
> Project: Felix
> Issue Type: Bug
> Affects Versions: fileinstall-3.6.0
> Reporter: Brandan Jeter
> Assignee: Guillaume Nodet
> Fix For: fileinstall-3.6.4
>
>
> The ConfigInstaller is handling a Config Delete Event now, but it always throws a NullPointException which crowds up the logs.
> On delete, the ConfigInstaller tries to get the corresponding Configuration object: https://github.com/apache/felix/blob/trunk/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/ConfigInstaller.java#L176
> It's never going to get the Configuration object because it was just deleted. So the getConfiguration call creates a new one with null as the properties. Then on line 180 there is a NullPointerException.
> Unfortunately, the fix for this will require changing the ConfigurationListener API so that the ConfigurationEvent either has the whole Dictionary of configuration properties or at least the felix.file.install property, if it exists.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)