Commits

Anonymous committed 5b404c2

- log a warning when visited object by this VisitorValidator is null, cause in this case the validation will not work properly.

Issue number: XW-201
Obtained from:
Submitted by:
Reviewed by:

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

  • Participants
  • Parent commits 7863d9b

Comments (0)

Files changed (1)

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

         String fieldName = getFieldName();
         Object value = this.getFieldValue(fieldName, object);
         if (value == null) {
+        	log.warn("The visited object is null, VisitorValidator will not be able to handle validation properly. Please make sure the visited object is not null for VisitorValidator to function properly");
             return;
         }
         OgnlValueStack stack = ActionContext.getContext().getValueStack();