From 54225f84f6e4186e7373ab499adcf7a61e0b7317 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 15 Jan 2021 17:43:34 +0100 Subject: [PATCH] Fixed mistake in list building. --- src/fr/devinsy/strings/StringList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/strings/StringList.java b/src/fr/devinsy/strings/StringList.java index 92c121e..5eebe6c 100644 --- a/src/fr/devinsy/strings/StringList.java +++ b/src/fr/devinsy/strings/StringList.java @@ -2064,7 +2064,7 @@ public class StringList extends ArrayList implements CharSequence, Appen buffer.append(separator); } - if (separator != null) + if ((separator != null) && (!isEmpty())) { buffer.removeLast(); }