fix bug.
parent
5dc37c081e
commit
17f7a1f4ac
|
@ -185,7 +185,7 @@ public class StringValidator<DTO> extends PropertyValidator<DTO, String, StringV
|
||||||
Function<String, E> exceptionCreator) {
|
Function<String, E> exceptionCreator) {
|
||||||
withRule(value -> {
|
withRule(value -> {
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
return value.isEmpty();
|
return value.isEmpty();
|
||||||
}, exceptionCreator);
|
}, exceptionCreator);
|
||||||
|
|
Loading…
Reference in New Issue