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

Unico Hommes resolved FELIX-2745.
---------------------------------

       Resolution: Fixed
    Fix Version/s: fileinstall-3.1.4

> New configurations throw NPE
> ----------------------------
>
>                 Key: FELIX-2745
>                 URL: https://issues.apache.org/jira/browse/FELIX-2745
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>    Affects Versions: fileinstall-3.1.2
>            Reporter: Unico Hommes
>            Priority: Critical
>             Fix For: fileinstall-3.1.4
>
>
> Line 216:
>         Hashtable old = new Hashtable(new 
> DictionaryAsMap(config.getProperties()));
> in ConfigInstaller.java causes NPE when the configuration is new because 
> config.getProperties returns null.
> I fixed the problem on my local copy by changing the code to:
>         Dictionary dict = config.getProperties();
>         if (dict == null) dict = new Hashtable();
>         Hashtable old = new Hashtable(new DictionaryAsMap(dict));

-- 
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