Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> countPageBox  [in template "20116#20152#49660" at line 219, column 30]

----
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: #if countPageBox gt 1  [in template "20116#20152#49660" at line 219, column 25]
----
1<script> 
2	if ($("link[data-css='csscomunicadosimprensa']").length === 0) { 
3		$('<link>').attr({ 
4			"href": "/o/avianca-theme/css/comunicados-imprensa.min.css", 
5			"rel" : "stylesheet", 
6			"data-css" : "csscomunicadosimprensa" 
7			}) 
8			.appendTo('head'); 
9
10 
11	if ($("script[data-js='jsimprensa']").length === 0) { 
12		$('<script>').attr({ 
13			"src": "/o/avianca-theme/js/av-imprensa.js", 
14			"type" : "text/javascript", 
15			"data-js" : "jsimprensa" 
16			}) 
17			.appendTo('body'); 
18
19</script> 
20 
21 
22<#if locale == 'pt_BR'> 
23    <#assign dateFormat = "dd 'de' MMMM 'de' yyyy" /> 
24<#elseif locale == 'es_ES'> 
25    <#assign dateFormat = "dd MMMM yyyy" /> 
26<#else> 
27    <#assign dateFormat = "MMMM dd, yyyy" /> 
28</#if> 
29 
30<#setting locale=locale> 
31 
32<#-- checa se contém itens no ano atual, se não, volta um ano --> 
33<#assign currentYear = .now?date?iso_utc?date("yyyy-MM-dd")?string("yyyy")> 
34<#assign yearParam = currentYear> 
35 
36<#if entries?has_content> 
37	<#assign hasYearItem = 0> 
38	<#list entries as curEntry> 
39		<#assign rootElement = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)).getRootElement()> 
40 
41		<#list rootElement.elements() as dynamicElement> 
42			<#if dynamicElement.attributeValue("name") == "dataPubli"> 
43				<#assign dataPubli = dynamicElement.element('dynamic-content').getText()> 
44				<#assign dataPubliYear = dataPubli?date("yyyy-MM-dd")?string("yyyy")> 
45			</#if> 
46		</#list> 
47 
48		<#if dataPubliYear == yearParam> 
49			<#assign hasYearItem++> 
50		</#if> 
51	</#list> 
52 
53	<#if hasYearItem lt 1> 
54		<#assign yearParam = (yearParam?number - 1)?string> 
55	</#if> 
56</#if> 
57 
58<#if portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getParameter('year')?has_content> 
59	<#assign yearParam = portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest)).getParameter('year')> 
60</#if> 
61 
62<div class="bgc-main container-fluid"> 
63 
64	<div class="row av-breadcrumb hidden-xs"> 
65		<div class="container" role="navigation"> 
66			<ul class="row"> 
67				<li class="pull-left"><a href="/" class="fz-12" role="link" title="Home" tabindex="100">Home</a></li> 
68				<li class="last pull-left"><a href="javascript:;" class="fz-12" role="link" title="Imprensa" tabindex="100">Imprensa</a></li> 
69			</ul> 
70		</div> 
71	</div> 
72 
73	<div class="row" id="imprensa"> 
74		<div class="container"> 
75			<div class="row"> 
76				<div class="box-comm"> 
77					<div class="current-comm"> 
78					<#-- Carregado dinânicamente vis JS --> 
79						<img src="" alt="" title="" tabindex="-1"> 
80						<div class="text-comm col-xs-12 col-sm-12 col-md-12"> 
81							<div> 
82 
83								<a href="" class="banner-link" role="link" title=""> 
84									<div class="content-link"> 
85										<div class="col-xs-12"> 
86											<p class="fz-28 fwb put-title" tabindex="100"></p> 
87											<p class="fz-16 put-sub" tabindex="100"></p> 
88											<p class="fz-14 put-date" tabindex="100"></p> 
89											<button class="more-offer bt" role="button" title="" tabindex="100"></button> 
90										</div> 
91									</div> 
92								</a> 
93 
94							</div> 
95						</div> 
96                    <#-- / --> 
97					</div> 
98				</div> 
99			</div> 
100		</div> 
101 
102		<div class="container txts"> 
103			<div class="row"> 
104				<div class="filter col-xs-12 col-sm-2"> 
105					<!-- Filtro por ano --> 
106					<form action="#" method="post"> 
107						<!-- Selecione o ano --> 
108						<div class="form-group select"> 
109							<div class="content-select"> 
110								<div class="row"> 
111									<label class="fz-14" for="ano" tabindex="100">Ano</label> 
112									<div class="text-input"> 
113										<input id="ano" type="text" name="ano" class="form-control txt-center" aria-label="${yearParam}" tabindex="100"> 
114										<span class="current-value fz-18 tac" data-value="">${yearParam}</span> 
115										<span class="ico glyphicon glyphicon-chevron-down"></span> 
116										<span class="ico glyphicon glyphicon-chevron-up"></span> 
117										<div class="dropdown col-xs-12"> 
118											<ul class="row"> 
119											<#assign anosLista = []> 
120											<#if entries?has_content> 
121												<#list entries as curEntry> 
122													<#assign rootElement = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)).getRootElement()> 
123 
124													<#list rootElement.elements() as dynamicElement> 
125														<#if dynamicElement.attributeValue("name") == "dataPubli"> 
126															<#assign dataPubli = dynamicElement.element('dynamic-content').getText()> 
127															<#assign dataPubliYear = dataPubli?date("yyyy-MM-dd")?string("yyyy")> 
128														</#if> 
129													</#list> 
130 
131													<#if (!anosLista?seq_contains(dataPubliYear))> 
132														<#assign anosLista = anosLista+[dataPubliYear]> 
133														<li><a href="?year=${dataPubliYear}" class="fz-18 tac" data-value="${dataPubliYear}">${dataPubliYear}</a></li> 
134													</#if> 
135												</#list> 
136											</#if> 
137											</ul> 
138										</div> 
139									</div> 
140								</div> 
141							</div> 
142						</div> 
143					</form> 
144				</div> 
145				<#if entries?has_content> 
146					<#assign countIndex = 0> 
147					<#assign countPageBox = 0> 
148 
149					<#list entries as curEntry> 
150						<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) /> 
151						<#assign rootElement = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)).getRootElement()> 
152 
153						<#list rootElement.elements() as dynamicElement> 
154							<#if dynamicElement.attributeValue("name") == "dataPubli"> 
155								<#assign dataPubli = dynamicElement.element('dynamic-content').getText()> 
156								<#assign dataPubliYear = dataPubli?date("yyyy-MM-dd")?string("yyyy")> 
157							</#if> 
158							<#if dynamicElement.attributeValue("name") == "subtitulo"> 
159								<#assign subTitulo = dynamicElement.element('dynamic-content').getText()> 
160							</#if> 
161						</#list> 
162 
163						<#if yearParam == dataPubliYear> 
164							<#assign countIndex++> 
165 
166							<#if countIndex == 1> 
167								<#assign countPageBox++> 
168								<div data-page="page_${countPageBox}" style="display:none"> 
169							</#if> 
170 
171								<div class="more-content <#if countIndex == 1>hide</#if>" data-index="${countIndex}"> 
172									<div class="wrap-in col-xs-12 col-sm-12 col-md-12 col-lg-12"> 
173										<div class="content-text col-xs-12 col-sm-12 col-md-12 col-lg-12"> 
174											<div class="row"> 
175												<div class="col-xs-12 col-sm-7 col-md-7 col-lg-7"> 
176													<div class="row"> 
177														<a href="${viewURL?split('?inheritRedirect')[0]}" role="link" tabindex="100" title="${curEntry.getTitle(locale)}" alt="${curEntry.getTitle(locale)}"> 
178															<p class="fz-18 fwb get-title" tabindex="100"> 
179															<#if curEntry.getTitle(locale)?length gt 79> 
180					                                            ${curEntry.getTitle(locale)?substring(0,80)}... 
181					                                        <#else> 
182					                                        	${curEntry.getTitle(locale)} 
183					                                        </#if> 
184															</p> 
185															<#if subTitulo?? && subTitulo != ""> 
186																<p class="fz-12 fz-16 get-sub" tabindex="100"> 
187																<#if subTitulo?length gt 159> 
188						                                            ${subTitulo?substring(0,160)}... 
189						                                        <#else> 
190						                                        	${subTitulo} 
191						                                        </#if> 
192																</p> 
193															</#if> 
194															<p class="fz-12 get-date" tabindex="100">${dataPubli?date("yyyy-MM-dd")?string(dateFormat)}</p> 
195														</a> 
196													</div> 
197												</div> 
198												<div class="col-xs-12 col-sm-2 col-md-2 col-lg-2 pull-right"> 
199													<div class="row"> 
200														<a href="${viewURL?split('?inheritRedirect')[0]}" role="link" tabindex="100" class="more-offer" title="${curEntry.getTitle(locale)}" alt="${curEntry.getTitle(locale)}">Leia Mais</a> 
201													</div> 
202												</div> 
203											</div> 
204										</div> 
205									</div> 
206								</div> 
207 
208							<#if countIndex == 11> 
209								</div> 
210								<#assign countIndex = 0> 
211							</#if> 
212						</#if> 
213 
214					</#list> 
215				</#if> 
216				 
217			</div> 
218 
219			<#if countPageBox gt 1> 
220			<div class="col-sm-12 col-md-12 col-lg-12 hidden-xs" id="wrap-av-pagination"> 
221			    <ul class="av-pagination"> 
222			        <li class="first"> <a href="javascript:;" role="link" tabindex="100" data-action="first"> ← First </a> </li> 
223			        <li class="prev"> <a href="javascript:;" role="link" tabindex="100" data-action="previous" title=""> Previous </a> </li> 
224 
225			        <li class="next"> <a href="javascript:;" role="link" tabindex="100" data-action="next" title=""> Next </a> </li> 
226			        <li class="last"> <a href="javascript:;" role="link" tabindex="100" data-action="last"> Last → </a> </li> 
227			    </ul> 
228			</div> 
229 
230			<div class="col-xs-12 hidden-sm hidden-lg hidden-md"> 
231				<div class="row av-pagination-mobile"> 
232					<div class="col-xs-6 hidden-sm hidden-lg hidden-md"> 
233						<a href="javascript:;" class="more-offer mob-prev" data-action="previous"><span class="glyphicon glyphicon-chevron-left"></span><div></div></a> 
234					</div> 
235					<div class="col-xs-6 hidden-sm hidden-lg hidden-md"> 
236						<a href="javascript:;" class="more-offer mob-next" data-action="next"><div></div><span class="glyphicon glyphicon-chevron-right"></span></a> 
237					</div> 
238				</div> 
239			</div> 
240			</#if> 
241		</div> 
242	</div> 
243</div> 
244 
245<script type="text/javascript"> 
246/*paginação*/ 
247var pagesTotal	= '${countPageBox}'; 
248 
249$(function(){ 
250	setTimeout(function(){ 
251		$('.current-comm a').attr('href', $('.current-comm a').attr('href').split('?inheritRedirect')[0]); 
252 
253		$('.av-breadcrumb .last a').attr('title', impBoxTitle).text(impBoxTitle); 
254		$('.current-comm .more-offer, .more-content .more-offer').text(txtBtnImprMais); 
255		$('.banner-link').attr('title', ''); 
256		$('.content-select label').text(selectTitle); 
257		$('.current-comm img').attr('src', imgTopoWide).attr('title', altImgTopo).attr('alt', altImgTopo); 
258		$('.av-pagination-mobile .mob-prev div').text(txtPagePrev); 
259		$('.av-pagination-mobile .mob-next div').text(txtPageNext); 
260		$('.av-pagination .prev a').attr('title', txtPagePrev); 
261		$('.av-pagination .next a').attr('title', txtPageNext); 
262	},1000); 
263}); 
264</script>