mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
SPR-6350
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user