Commits

Anonymous committed d9932b7

null pointer exception in visitor validator

Issue Number: XW-555
Submitted by: Trent Bills

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1644e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork2/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);
+            }
         }
     }