Commits

Anonymous committed a3ebabc

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/src@1645e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

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);
+            }
         }
     }