This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.installer.factory.configuration-1.0.10 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-factory-configuration.git
commit 391053f5070e3374b94952d80e2c98eeb392798e Author: Carsten Ziegeler <[email protected]> AuthorDate: Wed Mar 28 23:43:58 2012 +0000 SLING-2451 : NPE while trying to persist new configuration git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/installer/factories/configuration@1306644 13f79535-47bb-0310-9956-ffa450edef68 --- .../installer/factories/configuration/impl/ConfigTaskCreator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java b/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java index 8f4f3bc..4072e83 100644 --- a/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java +++ b/src/main/java/org/apache/sling/installer/factories/configuration/impl/ConfigTaskCreator.java @@ -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()); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
