mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
adding AIOOBE to removeIndex() in Dict classes
This commit is contained in:
@@ -292,6 +292,9 @@ public class StringDict {
|
||||
|
||||
|
||||
public String removeIndex(int index) {
|
||||
if (index < 0 || index >= count) {
|
||||
throw new ArrayIndexOutOfBoundsException(index);
|
||||
}
|
||||
//System.out.println("index is " + which + " and " + keys[which]);
|
||||
String key = keys[index];
|
||||
indices.remove(key);
|
||||
|
||||
Reference in New Issue
Block a user