You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Axel Hanikel (JIRA)" <ji...@apache.org> on 2015/01/22 17:12:35 UTC

[jira] [Commented] (SLING-4343) Iterator from JcrResourceProvider.queryResources() keeps returning same value on next()

    [ https://issues.apache.org/jira/browse/SLING-4343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287658#comment-14287658 ] 

Axel Hanikel commented on SLING-4343:
-------------------------------------

The following seems to fix it:

{code}
@@ -304,6 +304,7 @@ public class JcrResourceProvider
                         throw new NoSuchElementException();
                     }
                     final ValueMap result = next;
+                    next = null;
                     seek();
                     return result;
                 }
{code}

> Iterator from JcrResourceProvider.queryResources() keeps returning same value on next()
> ---------------------------------------------------------------------------------------
>
>                 Key: SLING-4343
>                 URL: https://issues.apache.org/jira/browse/SLING-4343
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>            Reporter: Axel Hanikel
>
> The iterator returned from {{JcrResourceProvider.queryResources()}} always returns the same value on next().



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)