]> source.dussan.org Git - jackcess.git/commitdiff
minor tweak to iterator
authorJames Ahlborn <jtahlborn@yahoo.com>
Wed, 25 Nov 2015 03:59:51 +0000 (03:59 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Wed, 25 Nov 2015 03:59:51 +0000 (03:59 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@968 f203690c-595d-4dc9-a70b-905162fa7fd2

src/main/java/com/healthmarketscience/jackcess/util/RowFilter.java

index 4c9f4dec8ae45e57e48a4cfc474a3a14eefb3233..440d9dd512ecc76dbf43c5887f62899f1f294fcf 100644 (file)
@@ -18,10 +18,11 @@ package com.healthmarketscience.jackcess.util;
 
 import java.util.Iterator;
 import java.util.Map;
+import java.util.NoSuchElementException;
 
 import com.healthmarketscience.jackcess.Column;
-import org.apache.commons.lang.ObjectUtils;
 import com.healthmarketscience.jackcess.Row;
+import org.apache.commons.lang.ObjectUtils;
 
 
 /**
@@ -180,6 +181,9 @@ public abstract class RowFilter
         }
 
         public Row next() {
+          if(_next == null) {
+            throw new NoSuchElementException();
+          }
           return _next;
         }