From a31104cfd2c4b4843be95fd9611323f16d4b9d2b Mon Sep 17 00:00:00 2001 From: Denis Anisimov Date: Tue, 7 Jul 2015 19:39:05 +0300 Subject: Always add "last" item from the string to the collection (#18433). Change-Id: Icf838aec9519aa12ea43773be86e508115c3883f --- .../com/vaadin/data/util/converter/StringToCollectionConverter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'server/src') diff --git a/server/src/com/vaadin/data/util/converter/StringToCollectionConverter.java b/server/src/com/vaadin/data/util/converter/StringToCollectionConverter.java index 495bed74f8..b86fec5558 100644 --- a/server/src/com/vaadin/data/util/converter/StringToCollectionConverter.java +++ b/server/src/com/vaadin/data/util/converter/StringToCollectionConverter.java @@ -155,9 +155,7 @@ public class StringToCollectionConverter implements previous = index + delimiter.length(); index = value.indexOf(delimiter, previous); } - if (result.size() > 0) { - collectToken(value.substring(previous), result, converter, locale); - } + collectToken(value.substring(previous), result, converter, locale); return result; } -- cgit v1.2.3