summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin
diff options
context:
space:
mode:
authorMikael Grankvist <mgrankvi@vaadin.com>2013-01-15 13:34:02 +0200
committerMikael Grankvist <mgrankvi@vaadin.com>2013-01-17 10:42:03 +0200
commit662ce8bdfb90c3afb07efd1f5a9f3d95877897e9 (patch)
tree2d3da701cb9ba59d41f6d68b5f8cfa17658d0d64 /server/src/com/vaadin
parentf5f8ee2494cc6614420391adb9f1cb730fd795d9 (diff)
downloadvaadin-framework-662ce8bdfb90c3afb07efd1f5a9f3d95877897e9.tar.gz
vaadin-framework-662ce8bdfb90c3afb07efd1f5a9f3d95877897e9.zip
(#10716 ) Created tests for validators and converters. Fixed StringToBoolean so that it accepts empty string.
Change-Id: I6f0507c1387fd2b1cf637f96cae05df4e6865456
Diffstat (limited to 'server/src/com/vaadin')
-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;
}