1. opensymphony
  2. xwork

Commits

rainerh  committed b056909
  • Participants
  • Parent commits 4ba27b0
  • Branches master

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/validator/validators/URLValidator.java

View file
  • Ignore whitespace
 
         // if there is no value - don't do comparison
         // if a value is required, a required validator should be added to the field
-        if (value == null) {
+        if (value == null || value.toString().length() == 0) {
             return;
         }