Navigazione Categorie

Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> curVocabulary  [in template "20116#20152#209919" at line 32, column 36]

----
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: #list curVocabulary.getCategories() a...  [in template "20116#20152#209919" at line 32, column 29]
----
1<div class="news-selector"> 
2    <div class="bper-wrapper"> 
3        <#if !entries?has_content> 
4        	<#if !themeDisplay.isSignedIn()> 
5        		${renderRequest.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", true)} 
6        	</#if> 
7 
8        	<div class="alert alert-info"> 
9        		<@liferay_ui["message"] 
10        			key="there-are-no-results" 
11        		/> 
12        	</div> 
13        </#if> 
14        <div class="row"> 
15            <div class="col-xs-12 col-lg-2"> 
16                <h2 class="title">News</h2> 
17            </div> 
18            <div class="col-xs-12 col-lg-10"> 
19                <#if entries?has_content> 
20                    <div class="categories"> 
21                        <#assign categoryURL = renderResponse.createRenderURL()> 
22        				${categoryURL.setParameter("categoryId", "")} 
23                        <#assign state = "inactive"> 
24                        <#assign categoryParameter = renderRequest.getParameter("categoryId")!"" > 
25                        <#if categoryParameter == ""> 
26                            <#assign state = "active"> 
27                        </#if> 
28                        <a href="${categoryURL}?p_r_p_resetCur=true" class="category-button ${state}"> 
29            				Tutte le categorie 
30            			</a> 
31                        <#list entries as curVocabulary> 
32                            <#list curVocabulary.getCategories() as curCat> 
33                                <#assign categoryURL = renderResponse.createRenderURL()> 
34                				${categoryURL.setParameter("categoryId", curCat.getCategoryId()?string)} 
35                				<#assign state = "inactive"> 
36                				<#assign categoryParameter = renderRequest.getParameter("categoryId")!"" > 
37                                <#if categoryParameter == curCat.getCategoryId()?string> 
38                                    <#assign state = "active"> 
39                                </#if> 
40                				<a href="${categoryURL}?p_r_p_resetCur=true" class="category-button ${state}"> 
41                				    ${curCat.getName()} 
42                				</a> 
43                            </#list> 
44                        </#list> 
45                    </div> 
46                </#if> 
47            </div> 
48        </div> 
49    </div> 
50</div>