git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2435 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald
2009-11-14 05:44:46 +00:00
parent d4b2d136d6
commit 449889af84
11 changed files with 154 additions and 85 deletions
@@ -185,7 +185,7 @@ public class FormattingConversionService implements FormatterRegistry, Conversio
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) {
String submittedValue = (String) source;
if (submittedValue.isEmpty()) {
if (submittedValue == null || submittedValue.length() == 0) {
return null;
}
Object parsedValue;