diff options
author | Henri Sara <hesara@vaadin.com> | 2013-01-17 09:07:09 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-01-17 09:07:09 +0000 |
commit | e27fa2111f73828afcb513afb77b957d69bc8f58 (patch) | |
tree | 3685259296de9c7e0c80710fa124e73eb902da99 /server/src/com/vaadin/data | |
parent | 75a09fb9df67afbc9042b90f41b199f17387a53d (diff) | |
parent | 662ce8bdfb90c3afb07efd1f5a9f3d95877897e9 (diff) | |
download | vaadin-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.java | 2 |
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; } |