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