You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2020/06/19 10:39:36 UTC

[myfaces] branch master updated: MYFACES-4343

This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/master by this push:
     new a408779  MYFACES-4343
a408779 is described below

commit a4087791d1faea910088690df5ed29a899b46cca
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Fri Jun 19 12:39:28 2020 +0200

    MYFACES-4343
---
 api/src/main/java/javax/faces/model/DataModel.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/src/main/java/javax/faces/model/DataModel.java b/api/src/main/java/javax/faces/model/DataModel.java
index 9843978..b616da0 100644
--- a/api/src/main/java/javax/faces/model/DataModel.java
+++ b/api/src/main/java/javax/faces/model/DataModel.java
@@ -192,7 +192,7 @@ public abstract class DataModel<E> implements Iterable<E>
         @Override
         public E next()
         {
-            if (hasNext())
+            if (!hasNext())
             {
                 throw new NoSuchElementException("Couldn't find any element in DataModel at index " + nextRowIndex);
             }