Reabilitação Urbana
Ocorreu um erro ao processar o template.
The following has evaluated to null or missing:
==> tipoSize  [in template "20099#20135#42007" at line 57, column 61]

----
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: ${tipo?substring(2, tipoSize - 2)}  [in template "20099#20135#42007" at line 57, column 42]
----
1<#if entries?has_content> 
2<#setting locale = 'pt_PT'> 
3 <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")/> 
4         <#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
5         <#assign HttpUtil = staticUtil["com.liferay.portal.kernel.util.HttpUtil"] /> <#list entries as curEntry> 
6         <#assign assetRenderer = curEntry.getAssetRenderer() />  
7         <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, curEntry, !stringUtil.equals(assetLinkBehavior, "showFullContent")) /> 
8         <#assign journalArticle = assetRenderer.getArticle() /> 
9         <#assign imagemPublicacao = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mM8sP9yPQAHbALT87hWCgAAAABJRU5ErkJggg=="/>  
10         <#assign autor = ""/> 
11         <#assign content = ""/>  
12         <#assign fonte = ""/>  
13         <#assign tipo = ""/> 
14         <#assign groupId =journalArticle.groupId/> 
15         <#assign className = assetRenderer.getClassName() />  
16         <#if className == "com.liferay.journal.model.JournalArticle"> 
17				 <#assign fields = assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues() />  
18					   
19				 <div class="row vert-offset-bottom-1">  
20					<div class="col-md-3 col-sm-12"> 
21					  <#list fields as field> 
22							 <#if field.getName() == "imagemPublicacao">  
23							  <#assign articleImageAsJson = jsonFactoryUtil.createJSONObject(field.getValue().getString(locale)) />  
24							   <#if articleImageAsJson.uuid?? && articleImageAsJson.uuid != "">  
25								  <#assign entryUuid = articleImageAsJson.uuid />  
26								  <#assign entryGroupId = getterUtil.getLong(articleImageAsJson.groupId) />  
27									<#assign dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
28									 <#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) />  
29									 <#assign assetRenderer = assetEntry.assetRenderer /> 
30									 <#assign imageURL = assetRenderer.getURLDownload(themeDisplay) />  
31									 <#assign imagemPublicacao =imageURL?split("&")/>  
32							   </#if> 
33							 </#if> 
34							 <#if field.getName() == "Autor"> 
35							   <#assign autor = field.getValue().getString(locale)/>  
36							 </#if>  
37							 <#if field.getName() == "Fonte"> 
38							   <#assign fonte = field.getValue().getString(locale) />  
39							 </#if> 
40							 <#if field.getName() == "content"> 
41							   <#assign content = field.getValue().getString(locale) /> 
42							 </#if> 
43							 <#if field.getName() == "Tipo"> 
44							   <#assign tipo = field.getValue().getString(locale) />  
45							   <#assign tipoSize = field.getValue().getString(locale)?length />  
46							 </#if>  
47 
48							  
49					 
50					  </#list>  
51         </#if>  
52         <img class="img-responsive" alt="${curEntry.getTitle(locale)}" src="${imagemPublicacao[0]}"/> 
53      </div>  
54      <div class="col-md-9 col-sm-12 publicacaoSeparador">  
55        <div class="row"> 
56          <div class="col-md-3">  
57             <div class="publicacaoTipo">${tipo?substring(2,tipoSize-2)}</div>  
58             <div class="publicacaoData">${assetRenderer.getDisplayDate()?string["MMM yyyy"]}</div> 
59          </div>  
60          <div class="col-md-9">  
61             <div class="publicacaoOutros">Autor <span>${autor}</span></div> 
62                <#if fonte?? && fonte != "">  
63                  <div class="publicacaoOutros">Fonte <span>${fonte}</span></div> 
64                </#if>  
65              </div>  
66          </div> 
67          <div class="publicacaoTitulo">${curEntry.getTitle(locale)} </div> 
68          <div>${content}</div>  
69           
70          	 
71          <div class="row vert-offset-bottom-1 vert-offset-top-1"> 
72            <#list fields as field> 
73                              
74             
75          	  			    <#if field.getName() == "NomeDoAnexo"> 
76          	  			      <#assign anexosList = field.getNestedDDMFormFieldValues() /> 
77          	  			        <#list anexosList as anexo> 
78                                      <#assign str=anexo.getValue().getString(locale)?string/> 
79                          	              
80                                         <#list str?split(",") as sValue> 
81										  
82										   <#if sValue ?index_of("uuid") gt 0> 
83										         <#assign propLength=sValue?length/>   
84										          <#assign uuid=sValue?substring(8,propLength-2)/> 
85										        
86										          <#assign file = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId) /> 
87										        
88										           
89										           <#assign url= "/documents/" + file.getGroupId() + "/" + file.getFolderId() + "/" 
90            + file.getTitle() + "/" + file.getUuid() /> 
91										          
92										          
93										           
94										   </#if> 
95										</#list> 
96                                   
97                                </#list> 
98                                          	  			     
99          	  			      <#if field.getValue().getString(locale)!="">   
100							    <div class="col-md-6 col-sm-12"> 
101							    <img align="left" src="/o/nph-theme/images/icon_download_pdf.png" alt="${field.getValue().getString(locale)}"/> 
102							    <a href="${url}" target="_blank" title="${field.getValue().getString(locale)}">${field.getValue().getString(locale)}</a> 
103							    </div> 
104							 </#if>  
105							</#if>  
106							  
107          	  </#list> 
108           
109          </div> 
110       </div>  
111     </div>  
112      
113   </#list> 
114    
115   </#if>