Commits

Anonymous committed 8b9bbf4

null pointer exception in visitor validator

Issue Number: XW-555
Submitted by: Trent Bills

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/xwork_1-2@1645e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 792a796
  • Branches xwork_1-2

Comments (0)

Files changed (1)

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

         }
         for (int i = 0; i < array.length; i++) {
             Object o = array[i];
-            validateObject(fieldName + "[" + i + "]", o, visitorContext);
+            if ( o != null ) {
+                validateObject(fieldName + "[" + i + "]", o, visitorContext);
+            }
         }
     }