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