From be27c7174cf4a862dbc7e297e2d7dfc7f9ab7286 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Wed, 25 Nov 2015 03:59:51 +0000 Subject: minor tweak to iterator 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3