The following has evaluated to null or missing:

七月 14, 2016 2:19:25 下午 freemarker.log._JDK14LoggerFactory$JDK14Logger error
严重: Error executing FreeMarker template
FreeMarker template error:
The following has evaluated to null or missing:
==> module  [in template "view/addMoudle.html" at line 12, column 45]

Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction (FTL stack trace):
----------
==> ${module.module_id?default("")}  [in template "view/addMoudle.html" at line 12, column 43]
----------

Java stack trace (for programmers):

 

正确处理方法:1对象不能为空,2值也不能为空,给个默认值。

posted @ 2016-07-14 14:24  含华  阅读(6752)  评论(0编辑  收藏  举报