Une erreur s'est produite lors du traitement du gabarit.
The following has evaluated to null or missing:
==> xPathSelector.selectSingleNode(rootElement)  [in template "10154#10192#509307" at line 29, column 34]

----
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: Visuel = xPathSelector.selectSingleNo...  [in template "10154#10192#509307" in function "getImageURL" at line 29, column 25]
----
1<#function getField field> 
2	<#if field?has_content> 
3		<#return field.getValue().getString(local) > 
4	<#else> 
5	</#if> 
6</#function> 
7 
8<#function getFieldCheck field> 
9    <#return field.getValue().getString(local) > 
10</#function> 
11 
12<#function getPageField field > 
13	<#if field.getValue().getString(locale)?has_content> 
14		<#assign  
15			pageObject = jsonFactoryUtil.createJSONObject(field.getValue().getString(locale)) 
16			LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") 
17			layout = LayoutLocalService.getLayout(pageObject.getLong('groupId'), pageObject.getBoolean('privateLayout'), pageObject.getLong('layoutId')) 
18		/> 
19	   <#return  portalUtil.getLayoutURL(layout, themeDisplay) > 
20   </#if> 
21   <#return "" > 
22</#function> 
23 
24<#function getImageURL rootElement name > 
25	<#assign visuelLink = '' /> 
26	<#if rootElement??> 
27		<#assign  
28			xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='${name}']") 
29			Visuel = xPathSelector.selectSingleNode(rootElement) 
30			imageJson = jsonFactoryUtil.createJSONObject(Visuel.getStringValue()) 
31			imgUuid = imageJson.getString("uuid") 
32			imgGroupId = imageJson.getLong("groupId") 
33			visuelLink = "/c/document_library/get_file?uuid=${imgUuid}&groupId=${imgGroupId}" 
34		/> 
35	</#if> 
36	 
37    <#return visuelLink > 
38</#function> 
39 
40<style> 
41.clear-float:after{ 
42	content:""; 
43	display:table; 
44	clear:both; 
45
46</style> 
47<#if entries?has_content> 
48	<div class="liste-spectacles"> 
49		<#list entries as curEntry> 
50			<#assign  
51				renderer = curEntry.getAssetRenderer() 
52				className = renderer.getClassName() 
53			/> 
54			<#if className == "com.liferay.journal.model.JournalArticle" > 
55			 
56				<#assign journalArticle = renderer.getArticle()  
57					document = saxReaderUtil.read(journalArticle.getContent())  
58					rootElement = document.getRootElement()  
59					link = renderer.getURLViewInContext(renderRequest, renderResponse, '')  
60 
61					fields = renderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues() 
62					vignette           		= "${getImageURL(rootElement, 'vignette')}"   
63				/> 
64				 
65				<#list fields as field> 
66					<#switch field.getName()> 
67						<#case 'complet'> 
68								<#assign complet = "${getFieldCheck(field)}"    > 
69							<#break> 
70						<#case 'Dernières_places_disponibles'> 
71								<#assign dernieres_places_disponibles = "${getFieldCheck(field)}"   >  
72							<#break> 
73						<#case 'couleur'> 
74								<#assign couleur = "${getField(field)}"   >  
75							<#break> 
76						<#case 'thematique'> 
77								<#assign thematique = "${getField(field)}"    > 
78							<#break> 
79						<#case 'dates_horaires_reduit'> 
80								<#assign dates_horaires_reduit = "${getField(field)}"  >   
81							<#break> 
82						<#case 'artiste_liste'> 
83								<#assign artiste_liste = "${getField(field)}"    > 
84							<#break> 
85						<#case 'artiste'> 
86								<#assign artiste = "${getField(field)}"    > 
87							<#break> 
88						<#case 'nom_du_spectacle_liste'> 
89								<#assign nom_du_spectacle_liste	= "${getField(field)}"    > 
90							<#break> 
91						<#case 'nom_du_spectacle'> 
92								<#assign nom_du_spectacle = "${getField(field)}"    > 
93							<#break> 
94						<#case 'lien_page'> 
95								<#assign lien_page = "${getPageField(field)}" > 
96								<#if !lien_page?has_content> 
97									<#assign lien_page = link /> 
98								</#if> 
99							<#break> 
100					</#switch> 
101 
102				</#list> 
103				 
104				<#if couleur?trim != "" > 
105				<div class="spectacle_resume_2015"> 
106					<div class= ${couleur}>     
107					 
108						<a href=${lien_page}> 
109							<div class="spectacle_vignette_new"> 
110								<div class="bloc_principal"> 
111									<#if thematique?trim != "" > 
112										<p class="thematique">${thematique}</p> 
113									</#if> 
114									 
115									<p class="date_spectacle">${dates_horaires_reduit}</p> 
116														 
117									<#if vignette?trim != "" > 
118										<#if dernieres_places_disponibles?has_content && dernieres_places_disponibles?trim?boolean == true > 
119											<img src="${vignette}" alt="${artiste} - ${nom_du_spectacle}" class="complet"></img> 
120											<!-- 
121											<img src="/culture3t-mobile-theme/images/theme/dernieres_places_disponibles.png" alt="" class="img-complet" ></img> 
122											--> 
123											 
124											<#if thematique?trim != "" && dates_horaires_reduit?trim != ""> 
125												<img src="/o/culture3t2015-theme/images/theme/dernieres_places_disponibles.png" alt="Dernière place disponible" style="top:15%" class="img-complet" ></img> 
126											<#else> 
127												<img src="/o/culture3t2015-theme/images/theme/dernieres_places_disponibles.png" alt="Dernière place disponible" class="img-complet" ></img> 
128											</#if> 
129										<#elseif complet?has_content && complet?trim?boolean == true > 
130											<img src="${vignette}" alt="${artiste} - ${nom_du_spectacle}" class="complet"></img> 
131											<!-- 
132											<img src="/culture3t-mobile-theme/images/theme/complet1.png" alt="" class="img-complet" ></img> 
133											--> 
134											 
135											<#if thematique?trim != "" && dates_horaires_reduit?trim != ""> 
136												<img src="/o/culture3t2015-theme/images/theme/complet_site_web_3T.png" alt="Spectacle complet" style="top:15%" class="img-complet" ></img> 
137											<#else> 
138												<img src="/o/culture3t2015-theme/images/theme/complet_site_web_3T.png" alt="Spectacle complet" class="img-complet" ></img> 
139											</#if> 
140										<#else> 
141											<img src="${vignette}" alt="${artiste} - ${nom_du_spectacle}"></img> 
142										</#if> 
143									</#if> 
144									 
145									<#if artiste_liste?trim != "" > 
146										<h2 class="spectacle-artiste">${artiste_liste}</h2> 
147									<#else> 
148										<#if artiste?trim != "" > 
149											<h2 class="spectacle-artiste">${artiste}</h2> 
150										</#if> 
151									</#if> 
152									 
153									<#if nom_du_spectacle_liste?trim != ""> 
154										<h3 class="spectacle-nom">${nom_du_spectacle_liste}</h3> 
155									<#else> 
156										<h3 class="spectacle-nom">${nom_du_spectacle}</h3> 
157									</#if> 
158								</div>		 
159							</div> 
160						</a> 
161					 
162						<p class="efface-float"></p> 
163						 
164					</div>				 
165				</div> 
166				</#if>		 
167			<#else> 
168				not 
169			</#if>	 
170 
171		</#list> 
172		<div class="clear-float"></div> 
173	</div> 
174</#if>