jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject svn commit: r1421472 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIteratorImpl.java
Date Thu, 13 Dec 2012 20:04:44 GMT
Author: unico
Date: Thu Dec 13 20:04:42 2012
New Revision: 1421472

URL: http://svn.apache.org/viewvc?rev=1421472&view=rev
Log:
JCR-3483 nullify current node element before session is alive check is made

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIteratorImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIteratorImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIteratorImpl.java?rev=1421472&r1=1421471&r2=1421472&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIteratorImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIteratorImpl.java
Thu Dec 13 20:04:42 2012
@@ -179,6 +179,7 @@ class NodeIteratorImpl implements NodeIt
      */
     protected void fetchNext() {
         try {
+            next = null; // reset
             sessionContext.getSessionState().perform(new FetchNext());
         } catch (RepositoryException e) {
             log.warn("Failed to fetch next node", e);
@@ -188,7 +189,6 @@ class NodeIteratorImpl implements NodeIt
     private class FetchNext implements SessionOperation<Object> {
 
         public Object perform(SessionContext context) {
-            next = null; // reset
 
             ItemManager itemMgr = context.getItemManager();
             while (next == null && scoreNodes.hasNext()) {



Mime
View raw message