Chargement en cours...
Une erreur s'est produite lors du traitement du gabarit.
The following has evaluated to null or missing:
==> getAssetCategoryLocalService().fetchCategory(groupId,rootParentCategoryId,cultureName,vocabularyThemeParCulture.vocabularyId)  [in template "UTIL" at line 739, column 41]

----
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: categoryThemeParCulture = getAssetCat...  [in template "UTIL" in function "getListThemeCulture" at line 739, column 17]
	- Reached through: #assign-container  [in template "UTIL" in function "getListThemeCulture" at line 734, column 9]
	- Reached through: listThemeCulture = util.getListThemeC...  [in template "20099#20135#2430205" at line 35, column 25]
	- Reached through: #assign-container  [in template "20099#20135#2430205" at line 31, column 25]
----
1<#import "${templatesPath}/UTIL" as util>  
2<#import "${templatesPath}/DICTIONNAIRE" as dico> 
3	 
4<#if entries?has_content> 
5	<#assign  
6	    AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService") 
7	    GroupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService") 
8	    AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") 
9	    AssetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService") 
10	    currentGroup = GroupLocalService.getGroup(themeDisplay.getScopeGroupId()) 
11	    urlPortal = themeDisplay.getURLPortal() 
12	    url = urlPortal + themeDisplay.getURLCurrent() 
13	    currentFriendlyURL = portalUtil.getLayoutRelativeURL(themeDisplay.getLayout(), themeDisplay) 
14	    href = '' 
15	    nomCulture = '' 
16	    vocabularyTheme = AssetVocabularyLocalService.fetchGroupVocabulary(groupId, 'Theme') 
17	    listThemeCulture=[] 
18
19 
20	<script>	 
21		console.log("currentFriendlyURL = '${currentFriendlyURL}'"); 
22	</script>	 
23	 
24 	<#-- Recuperation de la culture --> 
25	<#if currentFriendlyURL?contains("/") > 
26	    <#assign 
27	       	nomCulture = currentFriendlyURL?keep_after("/") 
28
29		 
30		<#if nomCulture?contains("/") > 
31			<#assign 
32		       	nomCulture = nomCulture?keep_before("/") 
33 
34		       	culture = dico.prettyCulture(nomCulture, true) 
35		        listThemeCulture = util.getListThemeCulture(culture) 
36
37		</#if> 
38	</#if> 
39 
40    <#-- Recuperation du tag de l'étiquette article--> 
41    <#if renderRequest.getParameter("tag")??> 
42        <#assign tagId = renderRequest.getParameter("tag")?number> 
43    </#if> 
44 
45    <#if tagId??> 
46        <#assign  
47            theme = AssetCategoryLocalService.fetchAssetCategory(tagId?number) 
48            nomTheme = theme.name 
49
50    </#if> 
51     
52	<#-- Creation du lien pour le retour --> 
53	<#assign 
54		returnLink = urlPortal + "/" + nomCulture 
55
56 
57    <div class = "theme-selecteur"> 
58		<div class="ariane"> 
59			<a href="${urlPortal}">Accueil > 
60			<a href="${returnLink}">${dico.prettyCulture(nomCulture, true)}</a> 
61		</div>  
62 
63        <div class="select-stade"> 
64        	<#assign 
65        		txtTheme = "" 
66
67            <#if tagId??> 
68            	<#assign  
69            		txtTheme = nomTheme 
70
71            </#if> 
72             
73            <div class="txt-culture"></div> 
74            <div class="select-stade-2"> 
75	            <div class="txt-stade"><h2>${txtTheme}</h2></div> 
76             
77                <div class  = "styled-select2"> 
78                    <select onchange="redirectToPage('${returnLink}', this.value);"> 
79                        <option value ="">Changer de thème</option> 
80                        <#list listThemeCulture as theme> 
81                        	 
82                            <option value="${theme.categoryId!''}|${util.normalizeThemeNameCss(theme.name!'')}" >${theme.name!''}</option> 
83                        </#list> 
84                    </select> 
85                </div> 
86	        </div> 
87	    </div> 
88	</div> 
89	 
90	<script> 
91	    function redirectToPage(myURL, value) { 
92	    	console.log("value = " + value); 
93	    	if (value.indexOf("|") !== -1) { 
94	    		values = value.split("|"); 
95 
96		        window.localStorage.setItem('p_r_p_tag', values[0]);  
97		        myURL += "/" + values[1]; 
98
99	        window.location.href = myURL; 
100
101	</script> 
102 
103</#if> 
Chargement en cours...