diff --git a/core/src/processing/data/StringList.java b/core/src/processing/data/StringList.java index 0fceb717c..10f564476 100644 --- a/core/src/processing/data/StringList.java +++ b/core/src/processing/data/StringList.java @@ -312,7 +312,7 @@ public class StringList implements Iterable { if (index < 0) { throw new IllegalArgumentException("insert() index cannot be negative: it was " + index); } - if (index >= values.length) { + if (index >= data.length) { throw new IllegalArgumentException("insert() index " + index + " is past the end of this list"); }