aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/src/main/java/me/shedaniel/rei/api/common/util/CollectionUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/main/java/me/shedaniel/rei/api/common/util/CollectionUtils.java b/api/src/main/java/me/shedaniel/rei/api/common/util/CollectionUtils.java
index 4288ba4e5..aa4ac5037 100644
--- a/api/src/main/java/me/shedaniel/rei/api/common/util/CollectionUtils.java
+++ b/api/src/main/java/me/shedaniel/rei/api/common/util/CollectionUtils.java
@@ -315,7 +315,7 @@ public class CollectionUtils {
@Override
public T get(int index) {
if (index < 0 || index >= realSize)
- throw new IndexOutOfBoundsException(String.format("Index %s out of bounds for length %s", index, realSize));
+ return null;
return list.get(cursor + index);
}