allow empty string as date value nil
This commit is contained in:
parent
0709b037a7
commit
0f6b43605d
@ -27,7 +27,7 @@ public class DefaultDateParameterMapMapper implements ParameterMapMapper<Date> {
|
||||
if (value instanceof Date) {
|
||||
return (Date) value;
|
||||
}
|
||||
if (value instanceof String) {
|
||||
if (value instanceof String && ((String) value).trim().length() == 0) {
|
||||
try {
|
||||
return DateUtil.DEFAULT_DATEFORMAT.parse((String) value);
|
||||
} catch (ParseException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user