adding AIOOBE to removeIndex() in Dict classes

This commit is contained in:
Ben Fry
2013-06-03 12:01:42 -04:00
parent 3e6a9a8830
commit 476318fd76
3 changed files with 9 additions and 0 deletions

View File

@@ -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);