fix bug.
This commit is contained in:
parent
e9918b274a
commit
db909ff93f
@ -45,7 +45,7 @@ public class CollectionValidator<DTO, T> extends PropertyValidator<DTO, Collecti
|
|||||||
Function<Collection<T>, E> exceptionCreator) {
|
Function<Collection<T>, E> exceptionCreator) {
|
||||||
withRule(value -> {
|
withRule(value -> {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
return ((Collection<?>) value).isEmpty();
|
return ((Collection<?>) value).isEmpty();
|
||||||
}, exceptionCreator);
|
}, exceptionCreator);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user