diff --git a/src/main/java/xyz/zhouxy/plusone/validator/StringValidator.java b/src/main/java/xyz/zhouxy/plusone/validator/StringValidator.java index b833533..7996810 100644 --- a/src/main/java/xyz/zhouxy/plusone/validator/StringValidator.java +++ b/src/main/java/xyz/zhouxy/plusone/validator/StringValidator.java @@ -185,7 +185,7 @@ public class StringValidator extends PropertyValidator exceptionCreator) { withRule(value -> { if (value == null) { - return false; + return true; } return value.isEmpty(); }, exceptionCreator);