aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-02-02 21:58:46 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-02-02 21:58:46 +0100
commit438a5abf2b00f8ca37f8fc7a62c9198b8fe74870 (patch)
tree5d9324adc6c52e8c79db71c9aea25734fbac5f03 /subprojects
parentbuild: downgrade to Gradle 7.6 (diff)
downloadrefinery-438a5abf2b00f8ca37f8fc7a62c9198b8fe74870.tar.gz
refinery-438a5abf2b00f8ca37f8fc7a62c9198b8fe74870.tar.zst
refinery-438a5abf2b00f8ca37f8fc7a62c9198b8fe74870.zip
fix: missing NoSuchElementException
Bug was pointed out by Sonar: https://sonarcloud.io/project/issues?open=AYYT39yQKbLNgAqL21xC&id=graphs4value_refinery
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/store/src/main/java/tools/refinery/store/adapter/AdapterList.java3
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;