directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1476982 - /directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/partition/DefaultPartitionNexus.java
Date Mon, 29 Apr 2013 12:16:10 GMT
Author: elecharny
Date: Mon Apr 29 12:16:10 2013
New Revision: 1476982

URL: http://svn.apache.org/r1476982
Log:
Fix for DIRSERVER-1814

Modified:
    directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/partition/DefaultPartitionNexus.java

Modified: directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/partition/DefaultPartitionNexus.java?rev=1476982&r1=1476981&r2=1476982&view=diff
==============================================================================
--- directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/partition/DefaultPartitionNexus.java
(original)
+++ directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/partition/DefaultPartitionNexus.java
Mon Apr 29 12:16:10 2013
@@ -791,8 +791,13 @@ public class DefaultPartitionNexus exten
      */
     public void unbind( UnbindOperationContext unbindContext ) throws LdapException
     {
-        Partition partition = getPartition( unbindContext.getDn() );
-        partition.unbind( unbindContext );
+        Dn unbindContextDn = unbindContext.getDn();
+
+        if ( !Dn.isNullOrEmpty( unbindContextDn ) )
+        {
+            Partition partition = getPartition( unbindContext.getDn() );
+            partition.unbind( unbindContext );
+        }
     }
 
 



Mime
View raw message