Skip to content

Commit 03dab8c

Browse files
committed
Fixed uuid rule
1 parent 0b5e145 commit 03dab8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/javawebstack/validator/rule/UUIDRule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
public class UUIDRule implements ValidationRule {
1313

1414
public String validate(ValidationContext context, Field field, AbstractElement value) {
15+
if(value == null || value.isNull())
16+
return null;
1517
if (!value.isString())
1618
return "Not a valid uuid value";
1719
try {

0 commit comments

Comments
 (0)