directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r995731 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
Date Fri, 10 Sep 2010 10:06:25 GMT
Author: elecharny
Date: Fri Sep 10 10:06:24 2010
New Revision: 995731

URL: http://svn.apache.org/viewvc?rev=995731&view=rev
Log:
Fixed a potential NPE

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java?rev=995731&r1=995730&r2=995731&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
Fri Sep 10 10:06:24 2010
@@ -648,6 +648,11 @@ public class AdministrativePointIntercep
 
             List<AdministrativePoint> currentAdminPoints = adminPointCache.getElement(
dn );
 
+            if ( currentAdminPoints == null )
+            {
+                currentAdminPoints = new ArrayList<AdministrativePoint>();
+            }
+
             List<AdministrativePoint> administrativePoints = createAdministrativePoints(
adminPointEntry, uuid );
 
             for ( AdministrativePoint administrativePoint : administrativePoints )



Mime
View raw message