From 92db102c07bb52bb6f91155d437530f267037aea Mon Sep 17 00:00:00 2001 From: Rainer Hermanns Date: Tue, 1 Apr 2008 11:01:22 +0000 Subject: [PATCH] WW-2465 Dynamic trees in the dojo plugin causes a freemarker error if the child property returns null git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@643359 13f79535-47bb-0310-9956-ffa450edef68 --- .../dojo/src/main/resources/template/ajax/treenode-include.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dojo/src/main/resources/template/ajax/treenode-include.ftl b/plugins/dojo/src/main/resources/template/ajax/treenode-include.ftl index fec4f4d0c..3eee2e379 100644 --- a/plugins/dojo/src/main/resources/template/ajax/treenode-include.ftl +++ b/plugins/dojo/src/main/resources/template/ajax/treenode-include.ftl @@ -21,7 +21,7 @@ */ -->
-<#list stack.findValue(parameters.childCollectionProperty.toString()) as child> +<#list stack.findValue(parameters.childCollectionProperty.toString())! as child> ${stack.push(child)} <#include "/${parameters.templateDir}/ajax/treenode-include.ftl" /> <#assign oldNode = stack.pop() /> <#-- pop the node off of the stack, but don't show it -->