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 08:03 -------
concerning null:
Agreed.

concerning empty string:
In real life applications, I have never come across a situation where I wanted 
to pass "" to eval().  The tests that failed me were recurse-ing #set 
directives.  The first round does fine, #set's the value, and returns blank.  
The second round returns null because #set rendered blank, causing the whole 
#set directive to be rendered.

It might just be a matter of feeling.

In java, null and "" are different things.  null is not an instance (nothing), 
whereas "" is an instance (something).

$bean.property renders "" if bean.getProperty() returns "",
$bean.property renders "$bean.property" if bean.getProperty() returns null,

I think I'd like some consistency around here.

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

Reply via email to