incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1306644 - /sling/trunk/installer/factories/configuration/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java
Date Wed, 28 Mar 2012 23:43:59 GMT
Author: cziegeler
Date: Wed Mar 28 23:43:58 2012
New Revision: 1306644

URL: http://svn.apache.org/viewvc?rev=1306644&view=rev
Log:
SLING-2451 : NPE while trying to persist new configuration

Modified:
    sling/trunk/installer/factories/configuration/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java

Modified: sling/trunk/installer/factories/configuration/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/factories/configuration/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java?rev=1306644&r1=1306643&r2=1306644&view=diff
==============================================================================
--- sling/trunk/installer/factories/configuration/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java
(original)
+++ sling/trunk/installer/factories/configuration/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java
Wed Mar 28 23:43:58 2012
@@ -112,9 +112,8 @@ public class ConfigTaskCreator
                             }
                         }
                         if ( persist ) {
-                            Map<String, Object> attrs = null;
+                            final Map<String, Object> attrs = new HashMap<String,
Object>();
                             if ( config.getBundleLocation() != null ) {
-                                attrs = new HashMap<String, Object>();
                                 attrs.put(InstallableResource.INSTALLATION_HINT, config.getBundleLocation());
                             }
                             attrs.put(Constants.SERVICE_PID, event.getPid());



Mime
View raw message