summaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2015-07-07 19:39:05 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2015-07-08 11:00:01 +0300
commita31104cfd2c4b4843be95fd9611323f16d4b9d2b (patch)
treeaa8472e988263d62a51c01c2a4c56c17e27b1130 /server/src
parentac8aa788c2b1ded7787fb632b93080999256d2f6 (diff)
downloadvaadin-framework-a31104cfd2c4b4843be95fd9611323f16d4b9d2b.tar.gz
vaadin-framework-a31104cfd2c4b4843be95fd9611323f16d4b9d2b.zip
Always add "last" item from the string to the collection (#18433).
Change-Id: Icf838aec9519aa12ea43773be86e508115c3883f
Diffstat (limited to 'server/src')
-rw-r--r--server/src/com/vaadin/data/util/converter/StringToCollectionConverter.java4
1 files changed, 1 insertions, 3 deletions
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;
}