felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "armroe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-4898) NPE in org.apache.felix.ipojo.handlers.configuration.ConfigurationHandler.notifyListeners
Date Thu, 21 May 2015 04:10:02 GMT
armroe created FELIX-4898:
-----------------------------

             Summary: NPE in org.apache.felix.ipojo.handlers.configuration.ConfigurationHandler.notifyListeners

                 Key: FELIX-4898
                 URL: https://issues.apache.org/jira/browse/FELIX-4898
             Project: Felix
          Issue Type: Bug
          Components: iPOJO
    Affects Versions: ipojo-runtime-1.12.1
            Reporter: armroe


this snippet in notifyListeners(Map<String, Object> map)
...
for (String k : map.keySet()) {
                        if (! map.get(k).equals(m_lastConfiguration.get(k))) {
                            // Difference found, break;
                            diff = true;
                            break;
                        }
                    }
...
if map contains null value, a NPE will be thrown.
For example, fileinstall injects a config file without some property, a null pointer will
cause this exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message