From 1b45106e8174dd588b3937ce24e14132172c6815 Mon Sep 17 00:00:00 2001 From: smarasca5 Date: Wed, 18 Feb 2026 19:57:57 -0500 Subject: [PATCH 1/2] save1 --- core/src/processing/data/IntList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/data/IntList.java b/core/src/processing/data/IntList.java index afb4c6cd61..9c6c4379e3 100644 --- a/core/src/processing/data/IntList.java +++ b/core/src/processing/data/IntList.java @@ -164,7 +164,7 @@ public void clear() { * @webBrief Get an entry at a particular index */ public int get(int index) { - if (index >= this.count) { + if (index >= this.count || index < 0) { throw new ArrayIndexOutOfBoundsException(index); } return data[index]; From 75ea3dd56211584a4abb0623e1e4e7534dd06e2d Mon Sep 17 00:00:00 2001 From: smarasca5 Date: Wed, 11 Mar 2026 12:47:59 -0400 Subject: [PATCH 2/2] save2 --- core/src/processing/data/IntList.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/processing/data/IntList.java b/core/src/processing/data/IntList.java index 9c6c4379e3..83cac6b3f7 100644 --- a/core/src/processing/data/IntList.java +++ b/core/src/processing/data/IntList.java @@ -6,6 +6,7 @@ import java.util.Iterator; import java.util.Random; +import org.jetbrains.annotations.TestOnly; import processing.core.PApplet; @@ -171,6 +172,7 @@ public int get(int index) { } + /** * Set the entry at a particular index. *