Gruppo Hera Luce e GasServizio Ultima Istanza

Servizio Ultima Istanza

Servizio Ultima Istanza

Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> serviceLocator  [in template "20099#20135#145445" at line 119, column 95]

----
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: #assign dlFileEntryService = serviceL...  [in template "20099#20135#145445" at line 119, column 65]
----
1<#assign 
2	title = .vars['reserved-article-title'].data 
3	currentURL = themeDisplay.getURLCurrent()?keep_before("?") 
4	cssClassTitle = "gradient-text" 
5	cssClassDiv = "normal greyish-brown letter-spacing-sm" 
6	cssClassCol = "col-lg-12" 
7	isAssistenza = false 
8/> 
9<#if currentURL?contains("/assistenza")> 
10    <#assign isAssistenza = true /> 
11</#if> 
12<#if AllineamentoTesto.getData() == "text-center"> 
13	<#assign 
14		cssClassDiv = "big black-three letter-spacing-sm" 
15		cssClassCol = "offset-lg-2 col-lg-8" 
16	/> 
17</#if> 
18<#if ImmagineMob.getData()?? && ImmagineMob.getData() != ""> 
19	<section id="hera-generico" class="text-img-section"> 
20		<div class="container position-relative"> 
21			<div class="row align-items-center"> 
22				<div class="col-lg-8"> 
23					<#if MostraTitolo??> 
24						<#if MostraTitolo.getData() == "si"> 
25							<#if isAssistenza> 
26								<h5 class="title-x-bigger letter-spacing-sm bolder mb-5">${title}</h5> 
27							<#else> 
28								<h3 class="${cssClassTitle} title-x-bigger letter-spacing-sm bolder mb-5">${title}</h3> 
29							</#if> 
30						</#if> 
31					</#if> 
32					<div class="black-three big letter-spacing-sm">${Descrizione.getData()}</div> 
33				</div> 
34				<div class="col-lg-4"> 
35					<img alt="${ImmagineMob.getAttribute("alt")}" class="img-fluid" src="${ImmagineMob.getData()}" /> 
36				</div> 
37			</div> 
38		</div> 
39	</section> 
40<#elseif currentURL?contains("soluzioni-innovative")> 
41	<section id="hera-generico" class="text-img-section"> 
42		<div class="container position-relative"> 
43			<div class="row align-items-center"> 
44				<div class="col-lg-12 d-none d-lg-block ${AllineamentoTesto.getData()} pt-5 pb-3 mt-4"> 
45					<#if MostraTitolo??> 
46						<#if MostraTitolo.getData() == "si"> 
47							<#if isAssistenza> 
48								<h5 class="title-x-bigger letter-spacing-sm bolder mb-5">${title}</h5> 
49							<#else> 
50								<h3 class="${cssClassTitle} title-x-bigger letter-spacing-sm bolder">${title}</h3> 
51							</#if> 
52						</#if> 
53					</#if> 
54					<div class="col-lg-12 d-inline-block ${cssClassDiv}">${Descrizione.getData()}</div> 
55				</div> 
56			    <div class="col-lg-12 mobile d-lg-none ${AllineamentoTesto.getData()}" > 
57					<#if MostraTitolo??> 
58						<#if MostraTitolo.getData() == "si"> 
59							<#if isAssistenza> 
60								<h5 class="title-bigger letter-spacing-sm bolder mb-3">${title}</h5> 
61							<#else> 
62								<h3 class="${cssClassTitle} title-bigger letter-spacing-sm bolder mb-3 mt-3">${title}</h3> 
63							</#if> 
64						</#if> 
65					</#if> 
66					<div class="greyish-brown normal letter-spacing-sm">${Descrizione.getData()}</div> 
67				</div> 
68			</div> 
69		</div> 
70	</section> 
71<#else> 
72	<section id="hera-generico" class="text-img-section py-5"> 
73		<div class="container position-relative"> 
74			<div class="row align-items-center"> 
75				<div class="col-lg-12 d-none d-lg-block ${AllineamentoTesto.getData()}"> 
76					<#if MostraTitolo??> 
77						<#if MostraTitolo.getData() == "si"> 
78							<#if isAssistenza> 
79								<h5 class="title-x-bigger letter-spacing-sm bolder mb-3">${title}</h5> 
80							<#else> 
81								<h3 class="${cssClassTitle} title-x-bigger letter-spacing-sm bolder mb-3 mt-3">${title}</h3> 
82							</#if> 
83						</#if> 
84					</#if> 
85				</div> 
86				<div class="${cssClassCol} d-none d-lg-block ${AllineamentoTesto.getData()}"> 
87					<div class="${cssClassDiv}">${Descrizione.getData()}</div> 
88				</div> 
89			    <div class="col-lg-12 mobile d-lg-none "> 
90					<#if MostraTitolo??> 
91						<#if MostraTitolo.getData() == "si"> 
92							<#if isAssistenza> 
93								<h5 class="letter-spacing-sm bolder mb-3">${title}</h5> 
94							<#else> 
95								<h3 class="${cssClassTitle} letter-spacing-sm bolder mb-3 mt-3">${title}</h3> 
96							</#if> 
97						</#if> 
98					</#if> 
99					<div class="greyish-brown normal letter-spacing-sm text-left">${Descrizione.getData()}</div> 
100				</div> 
101			</div> 
102		</div> 
103	</section> 
104</#if> 
105 
106<#-- ************* Sezione "Documenti e Modulistica" ************* --> 
107<#if DocumentiEModulistica.getData()!=""> 
108	<#if DocumentiEModulistica.getSiblings()?has_content> 
109		<section id="doc-list" class="pt-5 pb-4"> 
110			<div class="container py-5"> 
111				<h3 class="title-big black-three letter-spacing-sm bolder mt-5 pt-3 d-none d-lg-block">Documenti e Modulistica</h3> 
112				<!-- <h3> Mobile --> 
113				<h3 class="title-normal black-three letter-spacing-sm bolder mt-5 pt-3 mobile d-lg-none">Documenti e Modulistica</h3> 
114				<div class="row"> 
115					<div class="col-lg-12"> 
116						<div class="row mt-5 pl-lg-5"> 
117							<#list DocumentiEModulistica.getSiblings() as 
118								cur_documentoAllegato> 
119								<#assign dlFileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryService") /> 
120								<#if cur_documentoAllegato.getData() !=""> 
121									<#assign counterDocAll = 0 /> 
122									<#list "${cur_documentoAllegato.getData()}"?split("/") as xDocAll> 
123										<#if counterDocAll==2> 
124											<#assign groupIdDocAll=xDocAll?number /> 
125										</#if> 
126										<#if counterDocAll==5> 
127											<#assign uuIdDocAll=xDocAll /> 
128											<#assign counterUuIdDocAll=0> 
129											<#list "${xDocAll}" ?split("?") as xUuIdDocAll> 
130												<#if counterUuIdDocAll==0> 
131													<#assign uuIdDocAll=xUuIdDocAll /> 
132												</#if> 
133												<#assign counterUuIdDocAll=counterUuIdDocAll + 1 /> 
134											</#list> 
135										</#if> 
136										<#assign counterDocAll=counterDocAll + 1 /> 
137									</#list> 
138									<#assign fileDocAll=dlFileEntryService.getFileEntryByUuidAndGroupId(uuIdDocAll, groupIdDocAll) /> 
139									<div class="col-md-4 col-sm-6"> 
140										<div class="row mb-3"> 
141											<div class="col-2 text-xl-center"> 
142												<i class="icon-doc gradient-text x-bigger"></i> 
143											</div> 
144											<div class="col-10 pl-md-0"> 
145												<a href="${cur_documentoAllegato.getData()}" class="black-three big letter-spacing-sm" target="_blank"> 
146													${fileDocAll.fileName?replace('.pdf|.PDF', '', 'r')} 
147												</a> 
148											</div> 
149										</div> 
150									</div> 
151								</#if> 
152							</#list> 
153						</div> 
154					</div> 
155				</div> 
156			</div> 
157		</section> 
158	</#if> 
159</#if>