Ocorreu um erro ao processar o template.
The following has evaluated to null or missing:
==> xPathSelector.selectSingleNode(rootElement)  [in template "20116#20152#33435" at line 122, column 58]

----
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 QuandoTenhoDeRequerer = xPath...  [in template "20116#20152#33435" at line 122, column 25]
----
1<style> 
2	.btn-primary.btn-service_request{ 
3		min-width: 100px; 
4		height: 45px; 
5		padding: 0 15px; 
6		border-radius:25px; 
7		margin-top: 25px; 
8
9	.btn-service_request-outter{ 
10		text-align: center; 
11
12	@media (min-width: 992px) { 
13		.btn-service_request-outter{ 
14			text-align: left; 
15
16		.btn-primary.btn-service_request{ 
17			min-width: 100px; 
18			margin-top: 0; 
19
20		.row-service_heading{ 
21			display: -webkit-box; 
22			display: -webkit-flex; 
23			display: -ms-flexbox; 
24			display: flex; 
25
26
27</style> 
28 
29<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
30<#assign httpServletRequest = serviceContext.getRequest()> 
31<#assign familyRedirect = "/servicos"> 
32 
33<#if !httpServletRequest.getParameter('articleId')??> 
34 
35	<div class="row" style="margin-top:20px;"> 
36	    <div class="col-md-10 col-md-offset-1" style="padding-top:20px;"> 
37 
38		    <#if entries?has_content> 
39		    	<#list entries as curEntry> 
40		    		<#assign renderer = curEntry.getAssetRenderer() /> 
41					<#assign className = renderer.getClassName() /> 
42 
43					<#if className == "com.liferay.journal.model.JournalArticle"> 
44						<#assign journalArticle = renderer.getArticle() /> 
45						<#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) /> 
46						<#assign rootElement = document.getRootElement() /> 
47				 
48						<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titulo']") /> 
49						<#assign titulo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
50						 
51						<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resumo']") /> 
52						<#assign resumo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
53 
54						<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Icon']") /> 
55						<#assign icon = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
56						 
57			    		<div class="row" style="padding-bottom:15px;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;"> 
58			    			<div class="col-md-1"> 
59							<#if (icon?trim?length > 0) > 
60								<img style="width: 80px; height: 80px;" src="${icon}"/> 
61							<#else> 
62								<div style="width: 80px; height: 80px;"></div> 
63							</#if> 
64			    			</div> 
65			    			<div class="col-md-11" style="display:flex; align-items:center;"> 
66			    			    <div> 
67    			    				<a href="${familyRedirect}?articleId=${curEntry.getEntryId()}"><h4 style="margin:0;">${titulo}</h4></a> 
68    			    				<p style="margin-top:10px;">${resumo}</p> 
69			    				</div> 
70			    			</div> 
71			    		</div> 
72 
73			    	</#if> 
74		    	</#list> 
75		    </#if> 
76 
77		</div> 
78	</div> 
79 
80<#else> 
81	<#assign articleId = httpServletRequest.getParameter('articleId')?number> 
82	<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
83	<#assign entry = assetEntryLocalService.getEntry(articleId) /> 
84 
85	<div class="row"> 
86		 
87		<#assign renderer = entry.getAssetRenderer() /> 
88		<#assign className = renderer.getClassName() /> 
89 
90		<#if className == "com.liferay.journal.model.JournalArticle"> 
91			<#assign journalArticle = renderer.getArticle() /> 
92			<#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) /> 
93			<#assign rootElement = document.getRootElement() /> 
94 
95			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titulo']") /> 
96			<#assign titulo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
97	 
98			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Icon']") /> 
99			<#assign icon = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
100			 
101			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resumo']") /> 
102			<#assign subtitulo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
103			 
104			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='btnText']") /> 
105			<#if xPathSelector.selectSingleNode(rootElement)?has_content > 
106				<#assign btnText = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
107			<#else> 
108				<#assign btnText =''> 
109			</#if> 
110			 
111			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='linkServico']") /> 
112			<#assign linkServico = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
113			 
114			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='QuandoTenhoDeRequererPergunta']") /> 
115			<#if xPathSelector.selectSingleNode(rootElement)?has_content > 
116				<#assign QuandoTenhoDeRequererPergunta = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
117			<#else> 
118				<#assign QuandoTenhoDeRequererPergunta =''> 
119			</#if> 
120 
121			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='QuandoTenhoDeRequerer']") /> 
122			<#assign QuandoTenhoDeRequerer = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
123			 
124			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='QuemPodeRequererPergunta']") /> 
125			<#if xPathSelector.selectSingleNode(rootElement)?has_content > 
126				<#assign QuemPodeRequererPergunta = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
127			<#else> 
128				<#assign QuemPodeRequererPergunta =''> 
129			</#if> 
130 
131			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='QuemPodeRequerer']") /> 
132			<#assign QuemPodeRequerer = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
133 
134			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='OndePossoRequererPergunta']") /> 
135			<#if xPathSelector.selectSingleNode(rootElement)?has_content > 
136				<#assign OndePossoRequererPergunta = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
137			<#else> 
138				<#assign OndePossoRequererPergunta =''> 
139			</#if> 
140			 
141			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='OndePossoRequerer']") /> 
142			<#assign OndePossoRequerer = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
143			 
144			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='documentacaoPergunta']") /> 
145			<#if xPathSelector.selectSingleNode(rootElement)?has_content > 
146				<#assign documentacaoPergunta = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
147			<#else> 
148				<#assign documentacaoPergunta =''> 
149			</#if> 
150 
151			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='documentacao']") /> 
152			<#assign documentacao = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
153			 
154			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='QualOCustoPergunta']") /> 
155			<#if xPathSelector.selectSingleNode(rootElement)?has_content > 
156				<#assign QualOCustoPergunta = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
157			<#else> 
158				<#assign QualOCustoPergunta =''> 
159			</#if> 
160 
161			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='QualOCusto']") /> 
162			<#assign QualOCusto = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
163 
164			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='legislacaoPergunta']") /> 
165			<#if xPathSelector.selectSingleNode(rootElement)?has_content > 
166				<#assign legislacaoPergunta = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
167			<#else> 
168				<#assign legislacaoPergunta =''> 
169			</#if> 
170 
171			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='legislacao']") /> 
172			<#assign legislacao = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
173 
174			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='relatedServices']") /> 
175			<#if xPathSelector.selectSingleNode(rootElement)?has_content > 
176				<#assign relatedServices = xPathSelector.selectSingleNode(rootElement).getStringValue()  /> 
177			<#else> 
178				<#assign relatedServices =''> 
179			</#if> 
180 
181			<div class="col-md-10 col-md-offset-1"> 
182				<div style="padding-top:20px; padding-bottom:20px;"> 
183					<div class="row row-service_heading"> 
184						<div class="col-xs-12 col-md-1"> 
185							<#if (icon?trim?length > 0) > 
186								<img style="width: 80px; height: 80px;" src="${icon}"/> 
187							<#else> 
188								<div style="width: 80px; height: 80px;"></div> 
189							</#if>						 
190						</div> 
191						<div class="col-xs-12 col-md-11" style="display:flex; align-items:center;"> 
192							<div> 
193								<h2 style="margin:0;">${titulo}</h2> 
194								<h4 style="margin-top:10px">${subtitulo}</h4> 
195							</div> 
196						</div> 
197					</div> 
198					<div class="row"> 
199						<div class="col-xs-12 col-md-1"> 
200						</div> 
201						<div class="col-xs-12 col-md-11 btn-service_request-outter"> 
202						<#if (btnText?trim?length > 0) > 
203							<a href="${linkServico}"><button class="btn-primary btn-service_request">${btnText}</button></a> 
204						<#else> 
205							<a href="${linkServico}"><button class="btn-primary btn-service_request"><@liferay.language key="portal.content.template.servico.executar"/></button></a> 
206						</#if> 
207						</div> 
208					</div> 
209				</div> 
210				<div aria-multiselectable="true" class="row" style="margin-bottom:20px;"> 
211					<div class="card" style="border: none; padding: 5px;"> 
212						<div class="card-header"> 
213							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
214								<a id="titleOne" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemOne" aria-expanded="true" aria-controls="itemOne"> 
215									<i id="itemOneIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> 
216									${(QuandoTenhoDeRequererPergunta?trim?length > 0)?then(QuandoTenhoDeRequererPergunta,'Quando tenho de requerer?')} 
217								</a> 
218							</p> 
219						</div> 
220						<div id="itemOne" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
221							<div class="card-block"> 
222								${QuandoTenhoDeRequerer} 
223							</div> 
224						</div> 
225					</div> 
226					<div class="card" style="border: none; padding: 5px;"> 
227						<div class="card-header"> 
228							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
229								<a id="titleTwo" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemTwo" aria-expanded="true" aria-controls="itemTwo"> 
230									<i id="itemTwoIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> 
231									${(QuemPodeRequererPergunta?trim?length > 0)?then(QuemPodeRequererPergunta,'Quem pode requerer?')} 
232								</a> 
233							</p> 
234						</div> 
235						<div id="itemTwo" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
236							<div class="card-block"> 
237								${QuemPodeRequerer} 
238							</div> 
239						</div> 
240					</div> 
241					<div class="card" style="border: none; padding: 5px;"> 
242						<div class="card-header"> 
243							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
244								<a id="titleThree" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemThree" aria-expanded="true" aria-controls="itemThree"> 
245									<i id="itemThreeIcon"style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> 
246									${(OndePossoRequererPergunta?trim?length > 0)?then(OndePossoRequererPergunta,'Onde posso requerer?')} 
247								</a> 
248							</p> 
249						</div> 
250						<div id="itemThree" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
251							<div class="card-block"> 
252								${OndePossoRequerer} 
253							</div> 
254						</div> 
255					</div> 
256					<div class="card" style="border: none; padding: 5px;"> 
257						<div class="card-header"> 
258							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
259								<a id="titleFour" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemFour" aria-expanded="true" aria-controls="itemFour"> 
260									<i id="itemFourIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> 
261									${(documentacaoPergunta?trim?length > 0)?then(documentacaoPergunta,'Que documentos são necessários?')} 
262								</a> 
263							</p> 
264						</div> 
265						<div id="itemFour" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
266							<div class="card-block"> 
267								${documentacao} 
268							</div> 
269						</div> 
270					</div> 
271					<div class="card" style="border: none; padding: 5px;"> 
272						<div class="card-header"> 
273							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
274								<a id="titleFive" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemFive" aria-expanded="true" aria-controls="itemFive"> 
275									<i id="itemFiveIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> 
276									${(QualOCustoPergunta?trim?length > 0)?then(QualOCustoPergunta,'Qual o custo?')} 
277								</a> 
278							</p> 
279						</div> 
280						<div id="itemFive" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
281							<div class="card-block"> 
282								${QualOCusto} 
283							</div> 
284						</div> 
285					</div> 
286					<div class="card" style="border: none; padding: 5px;"> 
287						<div class="card-header"> 
288							<p class="mb-0" style="padding-left: 20px; font-weight:bold;"> 
289								<a id="titleSix" class="serviceQuestion" data-toggle="collapse" data-parent="#accordion" href="#itemSix" aria-expanded="true" aria-controls="itemSix"> 
290									<i id="itemSixIcon" style="color:blue;" class="fa fa-arrow-circle-down" aria-hidden="true"></i> 
291									${(legislacaoPergunta?trim?length > 0)?then(legislacaoPergunta,'Qual a legislação aplicável?')} 
292								</a> 
293							</p> 
294						</div> 
295						<div id="itemSix" class="collapse" role="tabpanel" aria-labelledby="headingOne" style="background-color:white;"> 
296							<div class="card-block"> 
297								${legislacao} 
298							</div> 
299						</div> 
300					</div> 
301				</div> 
302			</div> 
303 
304		</#if> 
305 
306	</div> 
307	<div class="row" style="padding-top:30px;"> 
308		 
309		<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
310		<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") /> 
311		<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(entry.getEntryId()) /> 
312 
313		<#list currentArticleRelatedLinks as related_entry> 
314		    <#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
315		    <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
316		    <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
317		    <#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) /> 
318		    <#assign relatedArticleId = relatedArticle.getArticleId() /> 
319		     
320		    <#assign document = saxReaderUtil.read(relatedArticle.getContent()) /> 
321			<#assign rootElement = document.getRootElement() /> 
322	 
323			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Titulo']") /> 
324			<#assign titulo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
325			 
326			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Resumo']") /> 
327			<#assign resumo = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
328 
329			<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Icon']") /> 
330			<#assign icon = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
331 
332		    <div class="col-md-10 col-md-offset-1" style="padding-top:30px;"> 
333		    	<h4 style="margin:0; padding-bottom:20px;">${(relatedServices?trim?length > 0)?then(relatedServices,'Serviços Relacionados')}</h4> 
334	    		<div class="row" style="padding-bottom:15px;display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;"> 
335	    			<div class="col-md-1"> 
336						<#if (icon?trim?length > 0) > 
337							<img style="width: 80px; height: 80px;" src="${icon}"/> 
338						<#else> 
339							<div style="width: 80px; height: 80px;"></div> 
340						</#if> 
341	    			</div> 
342	    			<div class="col-md-11" style="display:flex; align-items:center;"> 
343						<div> 
344	    					<a href="${familyRedirect}?articleId=${relatedAssetEntry.getEntryId()}"><h4 style="margin:0;">${titulo}</h4></a> 
345	    					<p style="margin-top:10px;">${resumo}</p> 
346						</div> 
347	    			</div> 
348	    		</div> 
349    		</div> 
350		</#list> 
351 
352	</div> 
353 
354</#if> 
355 
356<script> 
357$('.serviceQuestion').click(function(e) {   
358  var elementId = $(this).attr("id"); 
359  var changeElementId = $("#" + elementId + " .fa")[0].id; 
360   
361  $("#" + changeElementId).toggleClass('fa-arrow-circle-down'); 
362  $("#" + changeElementId).toggleClass('fa-arrow-circle-up'); 
363}); 
364</script>