From a7b57ba1410441020a6438a8d943533958dc4f51 Mon Sep 17 00:00:00 2001 From: Johann Werner Date: Tue, 7 Feb 2017 13:45:33 +0100 Subject: [PATCH] fix array indexing (copied from @bpontleve) --- .../Sources/er/extensions/foundation/ERXArrayUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/Core/ERExtensions/Sources/er/extensions/foundation/ERXArrayUtilities.java b/Frameworks/Core/ERExtensions/Sources/er/extensions/foundation/ERXArrayUtilities.java index 1288aa749db..53b3061f423 100644 --- a/Frameworks/Core/ERExtensions/Sources/er/extensions/foundation/ERXArrayUtilities.java +++ b/Frameworks/Core/ERExtensions/Sources/er/extensions/foundation/ERXArrayUtilities.java @@ -2175,7 +2175,7 @@ public static String[] toStringArray(List array) { int size = array.size(); String[] b = new String[size]; for (int i = size; i > 0; i--) { - b[i] = array.get(i).toString(); + b[i - 1] = array.get(i - 1).toString(); } return b; }