حصل خطأ عند معالجة القالب.
The following has evaluated to null or missing:
==> category.categoryId [in template "11099719610328#20119#121851" at line 17, column 88]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to 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</#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: ${category.categoryId} [in template "11099719610328#20119#121851" at line 17, column 86]
----
1<#-- Services and Data -->
2<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
3<#assign categories = assetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle",.vars["reserved-article-resource-prim-key"].data?number) />
4
5<#assign category = {} />
6<#assign tab = '436318' /> <!-- Publications tab category -->
7
8<#-- Get the last child category with vocabularyId 119020 -->
9<#list categories?sort_by("treePath") as sortedCat>
10 <#if sortedCat.vocabularyId == 119020>
11 <#assign category = sortedCat />
12 </#if>
13</#list>
14
15<!-- Back Button and Article Title -->
16<div class="my-5 d-none">
17 <a class="me-auto btn-link link-back" href="/statistics-tabs?tab=${tab}&category=${category.categoryId}">
18 <@liferay.language key="back" />
19 </a>
20</div>
21<!-- Methodology Body Section -->
22<div class="webpage-content">
23 <#if (methodologyBody.getData())??>
24 <#if methodologyBody.getSiblings()?has_content>
25 <#list methodologyBody.getSiblings() as cur_methodologyBody>
26 <#if (cur_methodologyBody.getData())?? && cur_methodologyBody.getData()?trim != "">
27 <section class="mb-6">
28 ${cur_methodologyBody.getData()}
29 </section>
30 </#if>
31 </#list>
32 </#if>
33 </#if>
34</div>