码迷,mamicode.com
首页 > Windows程序 > 详细

The following has evaluated to null or missing:

时间:2016-07-14 15:13:55      阅读:1156      评论:0      收藏:0      [点我收藏+]

标签:

七月 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值也不能为空,给个默认值。

The following has evaluated to null or missing:

标签:

原文地址:http://www.cnblogs.com/hanhua/p/5670328.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!