mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Merge pull request #2672 from aengelke/string-list-insert-fix
Fix insert bug in StringList
This commit is contained in:
@@ -312,7 +312,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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user