summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/data
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2013-01-17 09:07:09 +0000
committerVaadin Code Review <review@vaadin.com>2013-01-17 09:07:09 +0000
commite27fa2111f73828afcb513afb77b957d69bc8f58 (patch)
tree3685259296de9c7e0c80710fa124e73eb902da99 /server/src/com/vaadin/data
parent75a09fb9df67afbc9042b90f41b199f17387a53d (diff)
parent662ce8bdfb90c3afb07efd1f5a9f3d95877897e9 (diff)
downloadvaadin-framework-e27fa2111f73828afcb513afb77b957d69bc8f58.tar.gz
vaadin-framework-e27fa2111f73828afcb513afb77b957d69bc8f58.zip
Merge "(#10716 ) Created tests for validators and converters. Fixed StringToBoolean so that it accepts empty string."
Diffstat (limited to 'server/src/com/vaadin/data')
-rw-r--r--server/src/com/vaadin/data/util/converter/StringToBooleanConverter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/data/util/converter/StringToBooleanConverter.java b/server/src/com/vaadin/data/util/converter/StringToBooleanConverter.java
index f549417aff..1702d3808f 100644
--- a/server/src/com/vaadin/data/util/converter/StringToBooleanConverter.java
+++ b/server/src/com/vaadin/data/util/converter/StringToBooleanConverter.java
@@ -40,7 +40,7 @@ public class StringToBooleanConverter implements Converter<String, Boolean> {
@Override
public Boolean convertToModel(String value, Locale locale)
throws ConversionException {
- if (value == null) {
+ if (value == null || value.isEmpty()) {
return null;
}