I miei preferiti

The following has evaluated to null or missing: ==> LLS.fetchLayoutByFriendlyURL(groupId, false, item.getFriendlyUrl()) [in template "383767#383802#678738" at line 8, column 32] ---- 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</#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: pageName = LLS.fetchLayoutByFriendlyU... [in template "383767#383802#678738" at line 8, column 21] - Reached through: #assign-container [in template "383767#383802#678738" at line 7, column 17] ----
1<#assign LLS = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")>
2
3<div class="container-fluid">
4 <#if pagina.getSiblings()?has_content>
5 <div class="card-row justify-content-center pt-2">
6 <#list pagina.getSiblings() as item>
7 <#assign
8 pageName = LLS.fetchLayoutByFriendlyURL(groupId, false, item.getFriendlyUrl()).getHTMLTitle(themeDisplay.getLocale())
9 link = item.getFriendlyUrl()
10 />
11
12 <#if pageName?trim?lower_case == "profilo">
13 <#if !themeDisplay.isSignedIn()>
14 <#assign
15 pageName = "Entra"
16 link = "/login"
17 />
18 </#if>
19 </#if>
20
21 <#if pageName?lower_case?trim?contains("esplora")>
22 <#assign link = "/">
23 </#if>
24
25 <div class="autofit-col autofit-col-expand">
26 <a href="${link}" class="autofit-section text-center no-decoration">
27 <i class="${item.icona.getData()} text-white"></i>
28 <p class="text-white font-weight-bold small mb-0">${pageName}</p>
29 </a>
30 </div>
31 </#list>
32 </div>
33 </#if>
34</div>