Freemark is not specified异常的一点思考
同事在调试Freemark遇到如下错误:
<#if freeBackTable.itemList?exists && freeBackTable.itemList?has_content> <@itemList=freeBackTable.itemList /></#if>?
再次运行程序,问题解决。在使用Freemark自定义的变量前,如果变量引用了一个第三方传递过来的对象,应该先判断该对像是否为null,在赋值给这个自定义变量。
?