directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1127075 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/cursor/CursorIterator.java
Date Tue, 24 May 2011 14:22:37 GMT
Author: elecharny
Date: Tue May 24 14:22:37 2011
New Revision: 1127075

URL: http://svn.apache.org/viewvc?rev=1127075&view=rev
Log:
Fixed the CursorIterator in order it does not generates an exception when no entry are found

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/cursor/CursorIterator.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/cursor/CursorIterator.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/cursor/CursorIterator.java?rev=1127075&r1=1127074&r2=1127075&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/cursor/CursorIterator.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/cursor/CursorIterator.java
Tue May 24 14:22:37 2011
@@ -52,8 +52,7 @@ public class CursorIterator<E> implement
         
         try
         {
-            cursor.next();
-            this.available = true;
+            this.available = cursor.next();
         }
         catch ( Exception e )
         {



Mime
View raw message