Re: Validation problems for fields in iterator
Lukasz Lenart <[email protected]> Wed, 22 Oct 2025 10:26:34 +0200
| Newsgroups | gmane.comp.jakarta.struts.user |
|---|---|
| Message-ID | <CAMopvkN2GcpFY8DrW4e9mTerc8rLUu9G=yVDzXA7M9FBfS1-gw@mail.gmail.com> |
This warning is from here [1], I would add the "required" validator [2][3] to avoid using field-validator if the value is null [1] https://github.com/apache/struts/blob/main/core/src/main/java/org/apach= e/struts2/validator/validators/VisitorFieldValidator.java#L134 [2] https://struts.apache.org/core-developers/required-validator [3] https://struts.apache.org/core-developers/required-field-validator-anno= tation pt., 17 pa=C5=BA 2025 o 19:33 Ute Kaiser <[email protected]> napisa=C5= =82(a): > > > One more thing left with the "visitor validator": > WARN [org.apache.struts2.validator.validators.VisitorFieldValidator] (de= fault task-3) 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 > I have no clue so far how to get rid of this warning. > Any advice? > > Best regards Ute > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >