directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1778711 - /directory/apacheds/branches/apacheds-value/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java
Date Sat, 14 Jan 2017 02:55:26 GMT
Author: elecharny
Date: Sat Jan 14 02:55:26 2017
New Revision: 1778711

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

Modified:
    directory/apacheds/branches/apacheds-value/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java

Modified: directory/apacheds/branches/apacheds-value/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java?rev=1778711&r1=1778710&r2=1778711&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-value/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java
(original)
+++ directory/apacheds/branches/apacheds-value/core/src/main/java/org/apache/directory/server/core/DefaultOperationManager.java
Sat Jan 14 02:55:26 2017
@@ -444,7 +444,7 @@ public class DefaultOperationManager imp
         // Normalize the addContext Dn
         Dn dn = bindContext.getDn();
         
-        if ( !dn.isSchemaAware() )
+        if ( ( dn != null ) && !dn.isSchemaAware() )
         {
             dn = new Dn( directoryService.getSchemaManager(), dn );
             bindContext.setDn( dn );



Mime
View raw message