Skip to content

Commit 973ac14

Browse files
committed
MaxRule should pass on null
1 parent d9824ef commit 973ac14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/ditsche/validator/ruleset/MaxRule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class MaxRule implements Rule {
1616
@Override
1717
public boolean passes(Object value) {
1818
if(value == null)
19-
return false;
19+
return true;
2020
if(value instanceof String)
2121
return ((String) value).length() <= max;
2222

0 commit comments

Comments
 (0)