An error occurred while processing the template.
The following has evaluated to null or missing:
==> journalService.fetchLatestArticle(getterUtil.getLong(webContentData.classPK))  [in template "20155#20195#5933600" at line 146, column 100]

----
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 journal = journalService.fetc...  [in template "20155#20195#5933600" at line 146, column 81]
----
1<#assign fileService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
2<#assign dlFileEntryTypeService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryTypeLocalService") /> 
3<#assign dlFileVersionService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileVersionLocalService") /> 
4<#assign   LayoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 
5<#assign   journalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
6 
7<#assign   assetEntryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
8 
9<#assign   layoutId = themeDisplay.getLayout().getPlid() /> 
10 
11<#assign  pathThemeImages = themeDisplay.getPathThemeImages() /> 
12<#assign  pathThemeImages = httpUtil.getPath(pathThemeImages) /> 
13 
14<#assign  pathContext = themeDisplay.getPathContext() /> 
15<#assign  currentURL = getterUtil.getString(themeDisplay.getURLCurrent()) /> 
16 
17<#assign   layoutLong = getterUtil.getLong(layoutId) /> 
18 
19<#assign  layoutCorrente = themeDisplay.getLayout() /> 
20<#assign  pageName = layoutCorrente.getName(locale) /> 
21 
22 
23 
24<#assign  description = .vars['reserved-article-description'].data /> 
25<#assign  title = .vars['reserved-article-title'].data /> 
26 
27<#-- 
28<#if (currentURL?index_of("/-/")!=-1) > 
29    <h1>${title}</h1> 
30<#else> 
31    <#if (validator.isNotNull(pageName))> 
32        <h1>${pageName}</h1> 
33    </#if> 
34</#if> 
35--> 
36 
37<div class="py-5"> 
38	<div class="container"> 
39		<#if header_html.getSiblings()?has_content > 
40			<#list header_html.getSiblings() as cur_header_html > 
41					${cur_header_html.getData()} 
42			</#list> 
43		</#if> 
44 
45		<#assign  gid = getterUtil.getLong(themeDisplay.getScopeGroupId()) /> 
46 
47		<#if (raggruppatore.getSiblings()?has_content) > 
48			<ul class="list-link pl-0 pb-4"> 
49				<#list   raggruppatore.getSiblings() as cur_Raggruppatore > 
50					<#if cur_Raggruppatore.separatore.data!="" > 
51					   ${cur_Raggruppatore.separatore.data} 
52					</#if> 
53					<#list  cur_Raggruppatore.getChildren() as cur_Prop  > 
54						<#list  cur_Prop.getSiblings() as cur_Prop_1 > 
55						    
56							  
57							<#if (cur_Prop_1.getName()=="link_esterno" && (cur_Prop_1.getData()!="")) > 
58								<li class="d-flex text-adm mb-4"> 
59									<span class="col-auto pl-2 fas fa-external-link-alt text-24"></span> 
60									<div> 
61										<a aria-label="<@liferay_ui['message'] key='aria.label.templates.goto.external.site' /> ${cur_Prop_1.descrizione_link_esterno.data} - <@liferay_ui['message'] key='aria.label.templates.external.site' />" href="${cur_Prop_1.getData()}"> 
62										  ${cur_Prop_1.descrizione_link_esterno.data} 
63										</a> 
64										 
65										${cur_Prop_1.destra_link_esterno.data} 
66									</div> 
67								</li> 
68							</#if> 
69						   
70							<#if (cur_Prop_1.getType()=="document_library")> 
71								<#assign arrdoc = cur_Prop_1.getData()?split("/") /> 
72								<#if (arrdoc?size > 5) > 
73									<#assign fileUid= (arrdoc[arrdoc?size-1]?split("?"))[0]/> 
74									 
75									<#assign  doc = fileService.getFileEntryByUuidAndGroupId(fileUid,gid) /> 
76									<#if (doc?? && doc!="") > 
77										<#assign entry = assetEntryService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",doc.getFileEntryId()) /> 
78										<#assign  fileEntryTypeId = doc.getFileEntryTypeId()  /> 
79										<#assign  fileEntryType = dlFileEntryTypeService.getDLFileEntryType(fileEntryTypeId)  /> 
80										<#assign  dlFileVersion = dlFileVersionService.getLatestFileVersion(doc.getUserId(),doc.getFileEntryId())  /> 
81										 
82									   <#assign renderer = entry.getAssetRenderer()> 
83									   <#assign fieldsMap =  renderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues() /> 
84										<#assign  testodestra =""  /> 
85										<#assign  testosinistra =""  /> 
86										<#assign  testoLink =""  /> 
87										<#list fieldsMap as item > 
88										    
89											   <#if (item.getName()=="Sinistra")> 
90												   <#assign  testosinistra = item.getValue().getString(locale) /> 
91												   <#if testosinistra?? && testosinistra!=""> 
92												      <#assign testosinistra=testosinistra?remove_beginning("<p>") /> 
93                                                      <#assign testosinistra=testosinistra?keep_before_last("</p>") /> 
94												   </#if> 
95											   <#elseif (item.getName()=="Destra")> 
96												   <#assign  testodestra =item.getValue().getString(locale)/> 
97												   <#if testodestra?? && testodestra!=""> 
98													   <#assign testodestra=testodestra?remove_beginning("<p>") /> 
99													   <#assign testodestra=testodestra?keep_before_last("</p>") /> 
100												    </#if> 
101											   <#elseif (item.getName()=="Testo_Link") /> 
102												   <#assign  testoLink =item.getValue().getString(locale) /> 
103												   <#if testoLink?? && testoLink!=""> 
104													   <#assign testoLink=testoLink?remove_beginning("<p>") /> 
105													   <#assign testoLink=testoLink?keep_before_last("</p>") /> 
106												   </#if> 
107											   </#if> 
108										    
109										</#list> 
110										 
111										<li class="d-flex text-adm mb-4"> 
112											<#assign  mimetype = doc.getMimeType() /> 
113									    
114											 
115											 
116												<span class="col-auto pl-2 fas fa-paperclip text-24"></span> 
117											 
118											<div> 
119												<#if (testosinistra!="")> 
120													${testosinistra}  
121												</#if> 
122												<#if (testoLink!="")> 
123													<a aria-label="<@liferay_ui['message'] key='aria.label.templates.download.file' /> ${testoLink}" href="${cur_Prop_1.getData()}">${testoLink}</a>  
124												<#else> 
125													<a aria-label="<@liferay_ui['message'] key='aria.label.templates.download.file' /> ${doc.getTitle()}" href="${cur_Prop_1.getData()}">${doc.getTitle()}</a>  
126												</#if> 
127												<#if (testodestra!="")> 
128													 ${testodestra} 
129												</#if> 
130											 
131											</div> 
132										</li> 
133									</#if> 
134								 
135								</#if>	 
136							 
137							</#if> 
138							 
139					    
140				<#if cur_Prop_1.getName()=="link_contenuto"> 
141							<#assign displayPage ="" /> 
142							<#if cur_Prop_1.RelWebContent?? &&  validator.isContent(cur_Prop_1.RelWebContent.getData())> 
143									<#assign webContentData = jsonFactoryUtil.createJSONObject(cur_Prop_1.RelWebContent.getData()) />	 
144								 
145									<#if webContentData.classPK?? && (getterUtil.getLong(webContentData.classPK)>0)> 
146										<#assign journal = journalService.fetchLatestArticle(getterUtil.getLong(webContentData.classPK)) /> 
147										<#assign displayPage = pathContext + '/-/' + journal.getUrlTitle() /> 
148									<#elseif webContentData.uuid??>	 
149											<#assign journal = journalService.getJournalArticleByUuidAndGroupId(webContentData.uuid,gid) /> 
150											<#assign displayPage = pathContext + '/-/' + journal.getUrlTitle() /> 
151									</#if> 
152											 
153												 
154								<#elseif cur_Prop_1.getData()!="">									 
155									<#assign displayPage = cur_Prop_1.getData() />					 
156								</#if>	 
157								<#--Visualizzazione link a contenuto -->	 
158								<#if validator.isContent(displayPage)>	 
159								    <#if displayPage?index_of(pathContext)==-1> 
160                                        <#assign displayPage = pathContext + displayPage /> 
161								    </#if> 
162									<li class="d-flex text-adm mb-4"> 
163										<#if (getterUtil.getBoolean(cur_Prop_1.icona_link.getData())) > 
164										   <span class="col-auto pl-2 fas fa-caret-right text-12 pt-2"></span> 
165										<#else> 
166											 <span class="col-auto pl-2 far fa-folder text-24"></span> 
167										</#if> 
168															 
169										 <div> 
170											<a aria-label="<@liferay_ui['message'] key='aria.label.templates.goto' /> ${cur_Prop_1.descrizione_link_contenuto.data}" href="${displayPage}"> 
171												${cur_Prop_1.descrizione_link_contenuto.data} 
172											</a> 
173											 
174											 
175											<#if cur_Prop_1.destra_link_contenuto?has_content && cur_Prop_1.destra_link_contenuto.data!=""> 
176												<#assign  destra_link_contenuto = cur_Prop_1.destra_link_contenuto.data /> 
177												<#if (validator.isNotNull(destra_link_contenuto)) > 
178													 ${destra_link_contenuto}  
179												</#if> 
180											</#if> 
181											 
182										 </div>		 
183									</li> 
184								</#if>	 
185						</#if> 
186							 
187						    
188							<#if (cur_Prop_1.getType()=="link_to_layout")> 
189							    
190								<#if (cur_Prop_1.getData()!="")> 
191								    
192									<#assign   layoutLong = getterUtil.getLong(cur_Prop_1.getData()) /> 
193								    
194									<#assign  pagina = LayoutLocalService.getLayout(gid, false, layoutLong) /> 
195									<#if (pagina?? && pagina!="") > 
196										<li class="d-flex text-adm mb-4"> 
197											 
198													<#if (getterUtil.getBoolean(cur_Prop_1.icona_link_pagina.getData())) > 
199														<span class="col-auto pl-2 fas fa-caret-right text-12 pt-2"></span> 
200													<#else> 
201														<span class="col-auto pl-2 far fa-folder text-24"></span> 
202													</#if> 
203											 
204											<div> 
205													<#if pagina.getExpandoBridge().getAttribute("sinistra")?? > 
206														${pagina.getExpandoBridge().getAttribute("sinistra")} 
207													</#if> 
208												<a aria-label="<@liferay_ui['message'] key='aria.label.templates.goto.page' /> ${pagina.getHTMLTitle(locale)}" href="${cur_Prop_1.getFriendlyUrl()}">${pagina.getHTMLTitle(locale)}</a> 
209													<#if pagina.getExpandoBridge().getAttribute("destra")?? > 
210														${pagina.getExpandoBridge().getAttribute("destra")} 
211													</#if> 
212											</div> 
213										</li>  
214									</#if> 
215								</#if> 
216							</#if> 
217						    
218							<#if (cur_Prop_1.getType()=="boolean")> 
219							 
220								<#if (cur_Prop_1.getData()!="") > 
221									 
222									<#list layoutCorrente.getChildren() as layoutChild > 
223										<#if (!layoutChild.isHidden())> 
224											<li class="d-flex text-adm mb-4"> 
225												 
226													<span class="col-auto pl-2 far fa-folder text-24"></span> 
227												    
228														<#if layoutChild.getExpandoBridge().getAttribute("sinistra")?? > 
229															${layoutChild.getExpandoBridge().getAttribute("sinistra")} 
230														</#if> 
231												 
232												<div> 
233													<a aria-label="<@liferay_ui['message'] key='aria.label.templates.goto.page' /> ${layoutChild.getHTMLTitle(locale)}" href="${pathContext +  layoutChild.getFriendlyURL()}">${layoutChild.getHTMLTitle(locale)}</a> 
234													 
235														<#if layoutChild.getExpandoBridge().getAttribute("destra")?? > 
236															${layoutChild.getExpandoBridge().getAttribute("destra")} 
237														</#if> 
238												</div> 
239											</li> 
240										</#if> 
241										 
242									</#list> 
243								</#if> 
244							</#if> 
245							 
246						</#list> 
247					</#list> 
248					 
249				</#list> 
250			</ul>	 
251		</#if> 
252 
253		<#if (validator.isNotNull(footer_html.getData()))> 
254		${footer_html.getData()} 
255		</#if> 
256	</div> 
257</div>