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) {
|
if (value instanceof Date) {
|
||||||
return (Date) value;
|
return (Date) value;
|
||||||
}
|
}
|
||||||
if (value instanceof String) {
|
if (value instanceof String && ((String) value).trim().length() == 0) {
|
||||||
try {
|
try {
|
||||||
return DateUtil.DEFAULT_DATEFORMAT.parse((String) value);
|
return DateUtil.DEFAULT_DATEFORMAT.parse((String) value);
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user