Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 75497 invoked from network); 26 Dec 2010 12:38:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Dec 2010 12:38:13 -0000 Received: (qmail 51234 invoked by uid 500); 26 Dec 2010 12:38:13 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 50896 invoked by uid 500); 26 Dec 2010 12:38:10 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 50872 invoked by uid 99); 26 Dec 2010 12:38:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Dec 2010 12:38:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Dec 2010 12:38:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBQCbjZQ018247 for ; Sun, 26 Dec 2010 12:37:45 GMT Message-ID: <22214729.20751293367065216.JavaMail.jira@thor> Date: Sun, 26 Dec 2010 07:37:45 -0500 (EST) From: "Unico Hommes (JIRA)" To: dev@felix.apache.org Subject: [jira] Created: (FELIX-2745) New configurations throws NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org New configurations throws 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 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 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.