option transfer select .ftl is brittle
--------------------------------------
Key: WW-2383
URL: https://issues.apache.org/struts/browse/WW-2383
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.0.11, 2.1.0
Reporter: Dale Newfield
Priority: Minor
This type of patch probably should be applied in a number of places, but this
bug is just for one of them.
I had an optiontransferselect tag that had an entry that happened to have
"null" as it's label. This caused freemarker to throw an exception (that got
displayed textually in the generated page. This exception meant that the
output was no longer well formed, which caused sitemesh to crash with an ugly
error message.
In freemarker, while "null" is a valid value, apparently it's illegal to store
that in a variable, so the assign tag is where this failed.
The fix is very simple: provide a default value of "" just in case the
attribute lookup returns null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.