jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1374986 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java
Date Mon, 20 Aug 2012 12:12:54 GMT
Author: mduerig
Date: Mon Aug 20 12:12:53 2012
New Revision: 1374986

URL: http://svn.apache.org/viewvc?rev=1374986&view=rev
Log:
OAK-257: NPE in o.a.j.oak.security.privilege.PrivilegeDefinitionImpl constructor 
patch from Chetan Mehrotra

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java?rev=1374986&r1=1374985&r2=1374986&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/privilege/PrivilegeDefinitionImpl.java
Mon Aug 20 12:12:53 2012
@@ -17,6 +17,7 @@
 package org.apache.jackrabbit.oak.security.privilege;
 
 import java.util.Set;
+
 import javax.annotation.Nonnull;
 
 import com.google.common.collect.ImmutableSet;
@@ -40,7 +41,7 @@ class PrivilegeDefinitionImpl implements
 
     PrivilegeDefinitionImpl(String name, boolean isAbstract,
                             String... declaredAggregateNames) {
-        this(name, isAbstract, ImmutableSet.copyOf(declaredAggregateNames));
+        this(name, isAbstract, ImmutableSet.copyOf(declaredAggregateNames  == null ? new
String[0] : declaredAggregateNames));
     }
 
     //------------------------------------------------< PrivilegeDefinition >---



Mime
View raw message