This commit is contained in:
Alexis Engelke
2014-07-30 17:51:58 +02:00
parent faf4584a55
commit ca0a0580c3
+1 -1
View File
@@ -309,7 +309,7 @@ public class StringList implements Iterable<String> {
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");
}