directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1398780 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
Date Tue, 16 Oct 2012 13:24:56 GMT
Author: kayyagari
Date: Tue Oct 16 13:24:55 2012
New Revision: 1398780

URL: http://svn.apache.org/viewvc?rev=1398780&view=rev
Log:
check if the cursor is already closed

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java?rev=1398780&r1=1398779&r2=1398780&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/SearchHandler.java
Tue Oct 16 13:24:55 2012
@@ -831,7 +831,7 @@ public class SearchHandler extends LdapR
         }
         finally
         {
-            if ( cursor != null )
+            if ( ( cursor != null  ) && !cursor.isClosed() )
             {
                 try
                 {



Mime
View raw message