首页 > Windows开发 > 详细

The following has evaluated to null or missing:

时间:2016-07-14 15:10:58      阅读:1413      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!