You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2013/04/29 14:16:10 UTC
svn commit: r1476982 -
/directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/partition/DefaultPartitionNexus.java
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 );
+ }
}