diff options
Diffstat (limited to 'subprojects/store/src')
-rw-r--r-- | subprojects/store/src/main/java/tools/refinery/store/adapter/AdapterList.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subprojects/store/src/main/java/tools/refinery/store/adapter/AdapterList.java b/subprojects/store/src/main/java/tools/refinery/store/adapter/AdapterList.java index 2783675f..74bae6f0 100644 --- a/subprojects/store/src/main/java/tools/refinery/store/adapter/AdapterList.java +++ b/subprojects/store/src/main/java/tools/refinery/store/adapter/AdapterList.java | |||
@@ -66,6 +66,9 @@ public class AdapterList<T> implements Iterable<T> { | |||
66 | 66 | ||
67 | @Override | 67 | @Override |
68 | public Entry<T> next() { | 68 | public Entry<T> next() { |
69 | if (i >= size()) { | ||
70 | throw new NoSuchElementException(); | ||
71 | } | ||
69 | var entry = new Entry<>(getType(i), get(i)); | 72 | var entry = new Entry<>(getType(i), get(i)); |
70 | i++; | 73 | i++; |
71 | return entry; | 74 | return entry; |