The following has evaluated to null or missing: ==> nav [in template "test" at line 296, column 10] ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like 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 parenthesis: (!myDefault, ( ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #if nav == "all" [in template "test" at line 296, column 5] ---- null