From ca0a0580c3b0e4a2a055d50d89ee6fdb175e006b Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Wed, 30 Jul 2014 17:51:58 +0200 Subject: [PATCH] Fix processing/processing#2548 --- core/src/processing/data/StringList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/data/StringList.java b/core/src/processing/data/StringList.java index b5ec4bad0..7434c0e77 100644 --- a/core/src/processing/data/StringList.java +++ b/core/src/processing/data/StringList.java @@ -309,7 +309,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"); }