Error

freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> ws.getCategory() [in template "macro.ftl" at line 11, column 98] ---- Tip: If the failing expression is known to be legally refer to something that's null or missing, either specify a default value like 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 parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign cat = ws.getCategory() [in template "macro.ftl" in macro "showCategory" at line 11, column 83] - Reached through: @showCategory [in template "macro.ftl" at line 12, column 22] - Reached through: #include "macro.ftl" [in template "web.ftl" at line 1, column 1] ----