[ 
http://issues.ops4j.org/browse/QI-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13277#action_13277
 ] 

Niclas Hedhman commented on QI-233:
-----------------------------------

EntityQueryImpl pre-loads the Entity in hasNext(), and next() only 'hands it 
back' to the the caller. So, any call sequence that is not having a hasNext() 
between each call will fail.


> Query.iterator().next() returns null if no hasNext() has been executed.
> -----------------------------------------------------------------------
>
>                 Key: QI-233
>                 URL: http://issues.ops4j.org/browse/QI-233
>             Project: Qi4j
>          Issue Type: Bug
>            Reporter: Niclas Hedhman
>            Assignee: Rickard Öberg
>
> The Iterator returned by EntityQueryImpl doesn't initialize the first 
> instance of member reference "next", so that if one skips the call to 
> hasNext(), one get a null value returned.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to