The following has evaluated to null or missing: ==> global [in template "_template.ftl.htm" at line 17, column 41] 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. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (!myDefault, ( The failing instruction (print stack trace for 1 more): ==> ${global} [in template "_template.ftl.htm" in macro "template" at line 17, column 39]