Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> renderRequest.getCookies()  [in template "20099#20125#42387" at line 3, column 20]

----
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: #assign cookies = renderRequest.getCo...  [in template "20099#20125#42387" at line 3, column 1]
----
1<#assign url = themeDisplay.getURLCurrent() 
2index = 0/> 
3<#assign cookies = renderRequest.getCookies()> 
4 <#list cookies as cookie> 
5  <#if cookie.getName() == "maps"> 
6 		<#assign nameCookie = cookie.getName()/> 
7  </#if> 
8 </#list> 
9 
10<#assign journalArticleId = themeDisplay.getURLCurrent()?substring(themeDisplay.getURLCurrent()?index_of("id="))+3/> 
11 
12 
13<#assign indexInizio = themeDisplay.getURLCurrent()?index_of("id=")+3> 
14<#assign indexFine= themeDisplay.getURLCurrent()?index_of("&from=")> 
15<#if indexFine!=-1> 
16	<#assign journalArticleId = themeDisplay.getURLCurrent()?substring(indexInizio, indexFine)/> 
17	<#assign indexInizioFrom = themeDisplay.getURLCurrent()?index_of("from=")+5> 
18	<#assign provenienza = themeDisplay.getURLCurrent()?substring(indexInizioFrom)/> 
19</#if> 
20<#if indexFine==-1> 
21<#assign journalArticleId = themeDisplay.getURLCurrent()?substring(indexInizio)> 
22</#if> 
23 
24<!--NEWS --> 
25<#if journalArticleId?has_content> 
26<#if entries?has_content> 
27	<#list entries as curEntry> 
28	  <#if curEntry.getEntryId() == journalArticleId?number> 
29 
30<#assign 
31		assetRenderer = curEntry.getAssetRenderer() 
32		entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) 
33		docXml = saxReaderUtil.read(assetRenderer.getArticle().getContent()) 
34		/> 
35<!--		 
36<#assign 
37titolo = (docXml.valueOf("//dynamic-element[@name='Testo07849750']/dynamic-content/text()")) 
38descrizione = (docXml.valueOf("//dynamic-element[@name='Rtf57888374']/dynamic-content/text()")) 
39dataPubblicazione = docXml.valueOf("//dynamic-element[@name='dattero20782041']/dynamic-content/text()") 
40image = docXml.valueOf("//dynamic-element[@name='immagine76468952']/dynamic-content/text()") 
41imageObj = jsonFactoryUtil.createJSONObject(image) 
42luogo = (docXml.valueOf("//dynamic-element[@name='Testo51927069']/dynamic-content/text()")) 
43ora = (docXml.valueOf("//dynamic-element[@name='Testo98202771']/dynamic-content/text()")) 
44dataEvento = docXml.valueOf("//dynamic-element[@name='dattero45345007']/dynamic-content/text()") 
45contatti = docXml.valueOf("//dynamic-element[@name='Testo36736860']/dynamic-content/text()") 
46geo = docXml.valueOf("//dynamic-element[@name='Geolocalizzazione70922348']/dynamic-content/text()") 
47/> 
48--> 
49<#assign fields = assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()/> 
50								<#list fields as currentField> 
51												<#if currentField.getDDMFormField().getFieldReference()=='titolo'> 
52													<#assign titolo=currentField.getValue().getString(themeDisplay.getLocale()) /> 
53												</#if> 
54												<#if currentField.getDDMFormField().getFieldReference()=='areaDiTesto'> 
55													<#assign descrizione=currentField.getValue().getString(themeDisplay.getLocale()) /> 
56												</#if> 
57												<#if currentField.getDDMFormField().getFieldReference()=='dataPubblicazione'> 
58													<#assign dataPubblicazione=currentField.getValue().getString(themeDisplay.getLocale()) /> 
59												</#if> 
60												<#if currentField.getDDMFormField().getFieldReference()=='immagine'> 
61													<#assign image=currentField.getValue().getString(themeDisplay.getLocale()) /> 
62													<#assign imageObj = jsonFactoryUtil.createJSONObject(image) /> 
63												</#if> 
64												<#if currentField.getDDMFormField().getFieldReference()=='luogo'> 
65													<#assign luogo=currentField.getValue().getString(themeDisplay.getLocale()) /> 
66												</#if> 
67												<#if currentField.getDDMFormField().getFieldReference()=='oraEvento'> 
68													<#assign ora=currentField.getValue().getString(themeDisplay.getLocale()) /> 
69												</#if> 
70												<#if currentField.getDDMFormField().getFieldReference()=='dataEvento'> 
71													<#assign dataEvento=currentField.getValue().getString(themeDisplay.getLocale()) /> 
72												</#if> 
73												<#if currentField.getDDMFormField().getFieldReference()=='contatti'> 
74													<#assign contatti=currentField.getValue().getString(themeDisplay.getLocale()) /> 
75												</#if> 
76												<#if currentField.getDDMFormField().getFieldReference()=='geolocalizzazione'> 
77													<#assign geo=currentField.getValue().getString(themeDisplay.getLocale()) /> 
78												</#if>		 
79								</#list> 
80<#assign contacts = docXml.getRootElement()/> 
81<#assign categories =curEntry.getCategories()/> 
82		 
83        <main class="w-100 ct-main"> 
84 
85            <section id="event"> 
86                <div class="container"> 
87 
88                    <div class="row"> 
89                        <div class=" col-sm-12 col-md-6"> 
90                            <span class="subtitle"><img src="/o/CSIRTTema/images/svg/calendar.svg" alt="calendario"> ${dataPubblicazione?datetime("yyyy-MM-dd")?string("dd MMMM yyyy")}</span> 
91                            <h1 class="title">${titolo}</h1> 
92                            <div class="crop img-mobile "> 
93																<img src="/documents/${imageObj.getString('groupId')}/${imageObj.getString('uuid')}" alt="">    
94                            </div> 
95                            <div class="detail-event"> 
96                                <p class="data"> 
97																<#if dataEvento?has_content> 
98                                    <img src="/o/CSIRTTema/images/svg/data.svg" alt="data"> 
99                                    ${dataEvento?datetime("yyyy-MM-dd")?string("dd MMMM yyyy")} 
100																 </#if> 
101                                </p> 
102                                <p class="data"> 
103                                    <img src="/o/CSIRTTema/images/svg/pin.svg" alt="pin"> 
104                                    ${luogo} 
105                                </p> 
106                                <p class="data"> 
107                                    <img src="/o/CSIRTTema/images/svg/time.svg" alt="time"> 
108                                   ${ora} 
109                                </p> 
110                                <p class="data"> 
111                                    <img src="/o/CSIRTTema/images/svg/phone.svg" alt="phone"> 
112                                    ${contatti} 
113                                </p> 
114 
115                            </div> 
116                        </div> 
117                        <div class="col-sm-12  col-md-6"> 
118                            <div class="crop"> 
119                                <img src="/documents/${imageObj.getString('groupId')}/${imageObj.getString('uuid')}" alt="">    
120                            </div> 
121                        </div> 
122                    </div> 
123                </div> 
124                <div class="container"> 
125 
126                    <p class="text"> 
127                        ${descrizione} 
128                    </p> 
129                      <div class="tags-wrap"> 
130					    <#list categories as category>     
131                           <div class="tag">${category.name}</div> 
132						</#list> 
133                    </div> 
134 
135 
136<#attempt> 
137				<#assign fieldsAllegati = assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()/> 
138					<#list fieldsAllegati as currentFieldAllegati> 
139					<#if currentFieldAllegati.getDDMFormField().getFieldReference()=='allegati'> 
140								<#assign imgObjAllegati = jsonFactoryUtil.createJSONObject(currentFieldAllegati.getValue().getString(themeDisplay.getLocale()))/> 
141											 <#if imgObjAllegati != "{}"> 
142													<div class="link-wrapper"> 
143															 <a href="/documents/${imgObjAllegati.getString('groupId')}/${imgObjAllegati.getString('uuid')}" title="${imgObjAllegati.getString('title')}"  
144																		 target="blank" aria-label="${languageUtil.get(locale, "label.vaiallink")}" class="link">${imgObjAllegati.getString('title')} 
145																		<img src="/o/CSIRTTema/images/svg/icon-link.svg" alt="link"> 
146																</a> 
147															</div> 
148														</#if> 
149												</#if> 
150											</#list> 
151										 <#recover> 
152</#attempt> 
153	</div> 
154    </section> 
155				 
156 
157  <section class="wrapper-multimedia" id="eventGallery"> 
158                <div class="container"> 
159                <div class="row"> 
160                     
161                    <div class="wrapper-gallery col-12 "> 
162    <h2 class="h2-title ">${languageUtil.get(locale, "label.evento.galleria")}</h2> 
163     
164	<div class="owl-carousel owl-theme"> 
165 
166 
167<#attempt> 
168											<#assign fieldsPhotoGallery = assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()/> 
169											<#list fieldsPhotoGallery as currentFieldPhotoGallery> 
170													<#if currentFieldPhotoGallery.getDDMFormField().getFieldReference()=='photoGallery'> 
171														<#assign imgObjPhoto = jsonFactoryUtil.createJSONObject(currentFieldPhotoGallery.getValue().getString(themeDisplay.getLocale()))/> 
172														 <#if imgObjPhoto != "{}"> 
173																<div class="item"> 
174																		<button type="button" class="card" data-toggle="modal" data-target="#modalImage"> 
175																			 <div class="cropped img-wrapper"> 
176																					<img src="/documents/${imgObjPhoto.getString('groupId')}/${imgObjPhoto.getString('uuid')}" alt="">  
177																			</div> 
178																 </button> 
179																</div> 
180														</#if> 
181												</#if> 
182											</#list> 
183										 <#recover> 
184									</#attempt> 
185 
186                       
187    </div> 
188                </div> 
189            </div> 
190			  </div> 
191            </section> 
192  
193		<section id="map"> 
194              <div class="container"> 
195			   <#if nameCookie?has_content>			 
196				<#assign latitude = 0> 
197				<#assign longitude = 0> 
198 
199				<#if (geo!= "")> 
200					<#assign geolocationJSONObject = jsonFactoryUtil.createJSONObject(geo)> 
201					<#assign latitude = geolocationJSONObject.getDouble("lat")> 
202					<#assign longitude = geolocationJSONObject.getDouble("lng")> 
203						    
204			<iframe width="100%" height="420" style="border:0;" allowfullscreen="" loading="lazy" 
205			src="https://maps.google.com/maps?q=${latitude}%20${longitude}&t=&z=13&ie=UTF8&iwloc=&output=embed"></iframe> 
206				</#if> 
207			 
208  
209					<#else> 
210								<div class="no-cookies"> 
211                        <div class="content-cookies"> 
212                            <img src="/o/CSIRTTema/images/svg/alert-circle-outline.svg" alt=""> 
213                            <p>Il seguente contenuto è stato <b>bloccato</b>. 
214                            </p> 
215                            <p> 
216                                Per poterlo visualizzare è necessario accettare <b>tutti i coockies</b> del sito. 
217                            </p> 
218                           
219                        </div> 
220                    </div> 
221					</#if>					 
222			</div> 
223         </section> 
224 
225        </main> 
226				<#break> 
227</#if> 
228	</#list> 
229</#if> 
230</#if>