diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2015-11-25 03:59:51 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2015-11-25 03:59:51 +0000 |
commit | be27c7174cf4a862dbc7e297e2d7dfc7f9ab7286 (patch) | |
tree | 61476aa902633bfc06cdd5ca4b7d3c5476411893 /src | |
parent | beda429085fa7a2e90b1a9b435af825509a9beee (diff) | |
download | jackcess-be27c7174cf4a862dbc7e297e2d7dfc7f9ab7286.tar.gz jackcess-be27c7174cf4a862dbc7e297e2d7dfc7f9ab7286.zip |
minor tweak to iterator
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@968 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/util/RowFilter.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/util/RowFilter.java b/src/main/java/com/healthmarketscience/jackcess/util/RowFilter.java index 4c9f4de..440d9dd 100644 --- a/src/main/java/com/healthmarketscience/jackcess/util/RowFilter.java +++ b/src/main/java/com/healthmarketscience/jackcess/util/RowFilter.java @@ -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; } |