null Generic Polizza
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> tplToolUtil.getPolizzaByCodProdotto(request, codiceProdotto)  [in template "20157#20197#4139020" at line 22, column 68]

----
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 polizzaProdotto = tplToolUtil...  [in template "20157#20197#4139020" at line 22, column 41]
----
1<#if themeDisplay??> 
2<#else> 
3	<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() /> 
4	<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
5</#if> 
6 
7<div id="old_web_content_polizza"> 
8<section class="mb-9x mb-md-12x"> 
9	<section class="SectionMain AF-SectionSecondary"> 
10		<div class="SectionMain_container container mb-5x mb-sm-0x"> 
11    		<div class="SectionMain_content row no-gutters"> 
12      			<div class="col-sm-6 offset-sm-0 col-lg-5 offset-lg-1"> 
13        			<div class="AF-SectionSecondary_icon mb-3x"> 
14          				<svg id="Ico-3" xmlns="http://www.w3.org/2000/svg"> 
15            				<use xlink:href="#${Polizza.Icon.getData()}"></use> 
16          				</svg> 
17        			</div> 
18        		 
19        			<#assign journalArticleId = .vars['reserved-article-id'].data /> 
20        			<#if tplToolUtil??> 
21	        			<#assign codiceProdotto = tplToolUtil.getProductCodePolizza(request, journalArticleId) /> 
22	        			<#assign polizzaProdotto = tplToolUtil.getPolizzaByCodProdotto(request, codiceProdotto) /> 
23	        			<h1 class="mb-3x">${polizzaProdotto.getTitle()}</h1> 
24	        			<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
25						<#assign httpServletRequest = serviceContext.getRequest()> 
26						<#if themeDisplay.isSignedIn()> 
27		        			<#if httpServletRequest.getParameter('cliente')??> 
28		        				<#assign usernameCliente = httpServletRequest.getParameter('cliente') /> 
29			        			<a href="../preventivazione?codiceProdotto=${codiceProdotto}&versioneProdotto=${polizzaProdotto.getVersion()}&codiceConvenzione=${polizzaProdotto.getCodeConvenzione()}&cliente=${usernameCliente}" class="AF-Btn AF-Btn-primary AF-preventivo"> 
30			          				<span class="AF-Btn_label"><@liferay_ui["message"]  key="multilingua.tpl2019_POLIZZA.btn.fai.preventivo.lower" /></span> 
31			        			</a>  
32			        		<#else>  
33			        			<a href="../preventivazione?codiceProdotto=${codiceProdotto}&versioneProdotto=${polizzaProdotto.getVersion()}&codiceConvenzione=${polizzaProdotto.getCodeConvenzione()}" class="AF-Btn AF-Btn-primary AF-preventivo"> 
34			          				<span class="AF-Btn_label"><@liferay_ui["message"]  key="multilingua.tpl2019_POLIZZA.btn.fai.preventivo.lower" /></span> 
35			        			</a> 
36			        		</#if>	  
37		        		<#else>    
38                            <#if tplToolUtil.getLayoutFriendlyUrlPage(request, 'login')??> 
39                                   <a href="../preventivazione?codiceProdotto=${codiceProdotto}&versioneProdotto=${polizzaProdotto.getVersion()}&codiceConvenzione=${polizzaProdotto.getCodeConvenzione()}" class="AF-Btn AF-Btn-primary AF-preventivo"> 
40                                  <span class="AF-Btn_label"><@liferay_ui["message"]  key="multilingua.tpl2019_POLIZZA.btn.fai.preventivo.lower" /></span> 
41                                </a> 
42                            <#else> 
43                                <a href="https://www.ingegneri.aon.it/web/saml-login-ingegneri" class="AF-Btn AF-Btn-primary"> 
44                                  <span class="AF-Btn_label"><@liferay_ui["message"]  key="multilingua.tpl2019_POLIZZA.btn.fai.preventivo.lower" /></span> 
45                                </a> 
46                            </#if>		 
47	        			</#if>	        			 
48	        		</#if> 
49      			</div> 
50    		</div> 
51  		</div> 
52  		<div class="SectionMain_image"> 
53    		<div class="SectionMain_img"></div> 
54  		</div> 
55	</section> 
56</section> 
57 
58<#if ProgrammaPolizza.getData()?has_content> 
59	<div class="container mb-13x mb-md-20x"> 
60		<div class="row"> 
61	    	<div class="col-xs-12 offset-xs-0 col-lg-10 offset-lg-1"> 
62	        	<section class=""> 
63	            	<div class="row"> 
64	              		<div class="col-md-12 AF-InsuranceProgram_title"> 
65	                		<h2>${ProgrammaPolizza.getData()}</h2> 
66	              		</div> 
67	            	</div> 
68	            	<div class="row"> 
69	              		<div class="col-md-7">${ProgrammaPolizza.Description.getData()}</div> 
70	 	 	            <div class="col-md-4 offset-md-1"> 
71	         		    	<div class="AF-Card AF-InsuranceProgram_card"> 
72	                  			<div class="AF-Card_wrap AF-InsuranceProgram_cardWrap"> 
73	                    			<div class="AF-Card_content"> 
74	                      				<p class="AF-InsuranceProgram_cardTitle">${ProgrammaPolizza.Logo.LogoLabel.getData()}</p> 
75	                      				<img src="${ProgrammaPolizza.Logo.getData()}" alt="programma-polizza" /> 
76	                    			</div> 
77	                  			</div> 
78	                		</div> 
79	              		</div> 
80	            	</div> 
81	          	</section> 
82			</div> 
83		</div> 
84	</div> 
85</#if> 
86 
87 
88<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
89 
90<#-- Vantaggi --> 
91<#assign jsonVantaggi = jsonFactoryUtil.createJSONObject(Vantaggi.getData()) /> 
92<#if jsonVantaggi.classPK??> 
93	<#assign classPK = jsonVantaggi.classPK /> 
94	<#if JournalArticleLocalService.fetchLatestArticle(classPK?number)?has_content> 
95	    <#assign article = JournalArticleLocalService.getLatestArticle(classPK?number)> 
96<#--	    ${journalContent.getContent(groupId, article.getArticleId(), viewMode, "")}--> 
97			<#--fix cr multilingua --> 
98				${JournalArticleLocalService.getArticleContent(groupId, article.getArticleId(), viewMode, "", themeDisplay.getLocale().toString(), null, null)} 
99	</#if> 
100</#if> 
101 
102<#-- Soluzioni e Consigli --> 
103<#assign jsonSoluzioni = jsonFactoryUtil.createJSONObject(SoluzioniConsigli.getData()) /> 
104<#if jsonSoluzioni.classPK??> 
105	<#assign classPK = jsonSoluzioni.classPK /> 
106	<#if JournalArticleLocalService.fetchLatestArticle(classPK?number)?has_content> 
107	    <#assign article = JournalArticleLocalService.getLatestArticle(classPK?number)> 
108<#--	    ${journalContent.getContent(groupId, article.getArticleId(), viewMode, "")}--> 
109	<#--fix cr multilingua --> 
110		${JournalArticleLocalService.getArticleContent(groupId, article.getArticleId(), viewMode, "", themeDisplay.getLocale().toString(), null, null)} 
111	</#if> 
112</#if> 
113 
114<#-- Tariffazione --> 
115<#assign jsonTariffazione = jsonFactoryUtil.createJSONObject(Tariffazione.getData()) /> 
116<#if jsonTariffazione.classPK??> 
117	<#assign classPK = jsonTariffazione.classPK /> 
118	<#if JournalArticleLocalService.fetchLatestArticle(classPK?number)?has_content> 
119	    <#assign article = JournalArticleLocalService.getLatestArticle(classPK?number)> 
120<#--	    ${journalContent.getContent(groupId, article.getArticleId(), viewMode, "")}--> 
121		<#--fix cr multilingua --> 
122		${JournalArticleLocalService.getArticleContent(groupId, article.getArticleId(), viewMode, "", themeDisplay.getLocale().toString(), null, null)} 
123	</#if> 
124</#if> 
125 
126 
127	<#if tplToolUtil??> 
128	        			<#assign codiceProdotto = tplToolUtil.getProductCodePolizza(request, journalArticleId) /> 
129	        			<#if !"codiceProdotto"?contains("landing") > 
130<#-- Portlet DOCUMENTI --> 
131<@liferay_portlet["runtime"] 
132		portletProviderAction=portletProviderAction.VIEW 
133   		instanceId="06031990" 
134   		portletName="affinity-documenti-2019" 
135/> 
136	</#if> 
137</#if> 
138 
139 
140<section class="AF-Page_sectionWithBox-bottom mb-13x mb-md-20x"> 
141	<div class="container"> 
142    	<div class="row"> 
143        	<div class="col-xs-12 offset-xs-0 col-lg-10 offset-lg-1"> 
144            	<div class="AF-Card AF-Card-secondary"> 
145             		<div class="AF-Card_wrap AF-Card-medium AF-Card_bottom"> 
146                		<article class="AF-Card_content"> 
147                  			<div class="AF-Card_header"> 
148                    			<div class="AF-Card_image"> 
149                      				<svg xmlns="http://www.w3.org/2000/svg"> 
150                        				<use xlink:href="#${Polizza.Icon.getData()}"></use> 
151                      				</svg> 
152                    			</div> 
153								<#if tplToolUtil??> 
154									<#assign codiceProdotto = tplToolUtil.getProductCodePolizza(request, journalArticleId) /> 
155									<#assign polizzaProdotto = tplToolUtil.getPolizzaByCodProdotto(request, codiceProdotto) /> 
156                    					<h2 class="AF-Card_title">${polizzaProdotto.getTitle()}</h2> 
157								</#if> 
158                  			</div> 
159                  			<#if tplToolUtil?? && tplToolUtil.getLayoutFriendlyUrlPage(request, 'login')??> 
160                      			<a data-modal="" href="#" class="AF-Btn AF-Btn-primary AF-preventivo"> 
161    		    					<span class="AF-Btn_label AF-Btn_label-medium"><@liferay_ui["message"]  key="multilingua.tpl2019_POLIZZA.btn.fai.preventivo.lower" /></span> 
162    							</a> 
163							 <#elseif tplToolUtil??> 
164							     <a href="https://www.ingegneri.aon.it/web/saml-login-ingegneri" class="AF-Btn AF-Btn-primary"> 
165    		    					<span class="AF-Btn_label AF-Btn_label-medium"><@liferay_ui["message"]  key="multilingua.tpl2019_POLIZZA.btn.fai.preventivo.lower" /></span> 
166    							</a> 
167							 </#if> 
168		                </article> 
169              		</div> 
170            	</div> 
171          	</div> 
172        </div> 
173	</div> 
174</section> 
175 
176<style> 
177	.SectionMain_img { 
178	    background: url("${Polizza.Banner.getData()}"); 
179	    background-position: center; 
180		background-size: cover; 
181
182	.taglib-social-bookmarks{ 
183		display:none; 
184
185</style> 
186 
187 
188 
189 
190<script type="text/javascript"> 
191		$(document).ready(function() { 
192			$(document).on('click', '.AF-preventivo', function(e) { 
193			 url =$(".AF-preventivo").attr("href"); 
194			 	urlImp =  window.location.href; 
195				if (urlImp.indexOf("doAsUserId") >= 0){ 
196						var impers = urlImp.substring(urlImp.indexOf("doAsUserId"),urlImp.length); 
197
198						var urlNew= url + "&" + impers; 
199						$(".AF-preventivo").attr("href", urlNew); 
200						 
201				}); 
202			}); 
203</script> 
204 
205</div> 
206 
207<div id="cross_selling_web_content"> 
208<#if CrossSelling??> 
209<#assign jsonCrossSelling = jsonFactoryUtil.createJSONObject(CrossSelling.getData()) /> 
210<#if jsonCrossSelling.classPK??> 
211	<#assign classPK = jsonCrossSelling.classPK /> 
212	<#if JournalArticleLocalService.fetchLatestArticle(classPK?number)?has_content> 
213	    <#assign article = JournalArticleLocalService.getLatestArticle(classPK?number)> 
214	    ${journalContent.getContent(groupId, article.getArticleId(), viewMode, "")} 
215	</#if> 
216</#if> 
217</#if> 
218</div>