DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31583>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31583

RenderTool throws NPE if VTL is null





------- Additional Comments From [EMAIL PROTECTED]  2004-11-11 06:45 -------
hmm.  well, i made it do that intentionally, but i suppose the behavior is open
to some debate.

having the method return null for a null string is my first instinct, because
that is how most other tools are designed (particularly generics like MathTool
and DateTool).  if they don't want the invalid call to be rendered in the
template, then that's what the $!silent_notation is for.

IMO, passing in a null string is clearly invalid because it normally throws a
NPE.  it is standard practice with our tools to not let them throw exceptions,
but just return null instead.

the debatable thing here is whether it is invalid to pass in an empty string. 
personally, i think that is a waste of a method call and if they really want to
do that, they ought to use the $!bang in their template to indicate that this is
an *expected possibility.*  but i'm willing to consider arguments to the 
contrary.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to