allow empty string as date value nil

This commit is contained in:
Peter Hormanns 2021-10-27 21:07:42 +02:00
parent 0709b037a7
commit 0f6b43605d

View File

@ -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) {