incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1453303 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
Date Wed, 06 Mar 2013 11:51:26 GMT
Author: cziegeler
Date: Wed Mar  6 11:51:26 2013
New Revision: 1453303

URL: http://svn.apache.org/r1453303
Log:
SLING-2773 : NPE in JcrResourceListener on missing user id

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java?rev=1453303&r1=1453302&r2=1453303&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/JcrResourceListener.java
Wed Mar  6 11:51:26 2013
@@ -295,7 +295,9 @@ public class JcrResourceListener impleme
             final ChangedAttributes changedAttributes) {
 
         final Dictionary<String, Object> properties = new Hashtable<String, Object>();
-        properties.put(SlingConstants.PROPERTY_USERID, event.getUserID());
+        if ( event.getUserID() != null ) {
+            properties.put(SlingConstants.PROPERTY_USERID, event.getUserID());
+        }
         if (this.isExternal(event)) {
             properties.put("event.application", "unknown");
         }



Mime
View raw message