struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
Subject Re: NPE in Visitor Validation migrating from 2.0.14 to 2.1.6
Date Wed, 01 Apr 2009 18:04:11 GMT
This was fixed in xwork trunk(yesterday). I can't find the ticket now :)

musachy

On Wed, Apr 1, 2009 at 2:00 PM, Derrick Koes <Derrick_Koes@skillsoft.com> wrote:
> If I attempt to use an empty message node in my visitor validator
> configuration, I get a NullPointerException from
> TextParseUtil.translateVariables (line 155) because "expression" (the
> default message if message key is null) is null.
>
>
>
> I can sort of work around the issue by adding a default message, but
> then that string is prepending (according to guide and as witnessed) to
> the validation error string.  I do not want this string appended.
>
>
>
> Does anyone have any suggestions?
>
>
>
> <field name="userBean">
>
>            <field-validator type="visitor">
>
>                        <message key=" "></message>
>
>            </field-validator>
>
> </field>
>
>
>
> BTW, other forms such as "<message key=""></message>", "<message/>",
and
> "<message></message>" all produce the same problem.
>
>
>
> Thanks,
>
> Derrick
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message