Skip to content

Commit 1b45106

Browse files
committed
save1
1 parent 4206874 commit 1b45106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/processing/data/IntList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public void clear() {
164164
* @webBrief Get an entry at a particular index
165165
*/
166166
public int get(int index) {
167-
if (index >= this.count) {
167+
if (index >= this.count || index < 0) {
168168
throw new ArrayIndexOutOfBoundsException(index);
169169
}
170170
return data[index];

0 commit comments

Comments
 (0)