Os mais pedidos

Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> assetEntry.assetRenderer  [in template "20102#20128#1144095" at line 83, column 33]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
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: #local assetRenderer = assetEntry.ass...  [in template "20102#20128#1144095" in function "getArticleDLEntryUrl" at line 83, column 9]
	- Reached through: #assign pictureURL = getArticleDLEntr...  [in template "20102#20128#1144095" at line 23, column 13]
----
1<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>  
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
3<#assign vocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
4 
5<#assign targetViewUrl = "/web/sicoob/noticias" /> 
6<#assign targetPortletID = "xAioIawpOI5S" /> 
7 
8<#if entries?has_content> 
9    <#assign dateFormat = "dd/MM/yyyy" /> 
10     
11    <div class="list-news" style="margin-top: 50px;"> 
12        <#list entries as entry> 
13            <#assign assetRenderer = entry.getAssetRenderer() />  
14            <#assign journalArticle = assetRenderer.getArticle() /> 
15            <#assign docXml = saxReaderUtil.read(journalArticle.getContent()) /> 
16            <#assign categories = entry.getCategories()> 
17            <#assign categoryId = -1> 
18            <#list categories as category> 
19                <#assign categoryId = category.getCategoryId() /> 
20            </#list> 
21            <#assign viewURL = "${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/id/${entry.getEntryId()}${(categoryId != -1)?then('?p_r_p_categoryId=' + categoryId, '')}" /> 
22            <#assign xmlValue = docXml.valueOf("//dynamic-element[@name='image']/dynamic-content[@language-id='pt_BR']/text()") /> 
23            <#assign pictureURL = getArticleDLEntryUrl(xmlValue) /> 
24 
25            <#assign userLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService")> 
26 
27            <div class="news"> 
28                <div class="row"> 
29                    <#if pictureURL?has_content> 
30                        <div class="col-sm-12 col-md-5"> 
31                            <div class="background-image" style="background-image: url('${pictureURL}');"> 
32                                <#if (categories?size &gt; 0)> 
33                                    <p class="list-category text-truncate"> 
34                                        <#list categories as category> 
35                                            <#assign vocabulary = vocabularyService.getVocabulary(category.vocabularyId) /> 
36                                            <span class="category"> 
37                                                ${category.getName()} <#sep> &nbsp; 
38                                            </span> 
39                                        </#list> 
40                                    </p> 
41                                </#if> 
42                            </div> 
43                        </div> 
44                    <div class="col-sm-12 col-md-7 text-infos"> 
45                    <#else> 
46                    <div class="col-12 text-infos"> 
47                    </#if> 
48                        <span class="info-top hour">${entry.getTitle()} ${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)}</span> 
49                        <h3> 
50                            <a href="${viewURL}"> 
51                                ${entry.getTitle(locale)} 
52                            </a> 
53                        </h3> 
54 
55                        <#if entry.getSummary(locale)?has_content> 
56                            <div class="summary" style="overflow:hidden;"> 
57                                <#assign content = entry.getSummary(locale)> 
58                                ${(entry.getSummary(locale)?length < 160)?then(entry.getSummary(locale), entry.getSummary(locale)?substring(0, 160) + '...</i></em>')} 
59                            </div> 
60                        </#if> 
61 
62                        
63                    </div> 
64                </div> 
65            </div> 
66        </#list> 
67    </div> 
68<#else> 
69    <div class="alert alert-info"> 
70        Não existe notícia cadastrada. 
71    </div> 
72</#if> 
73 
74<#function getArticleDLEntryUrl xmlValue> 
75    <#local docUrl = "" /> 
76 
77    <#if xmlValue?has_content> 
78        <#local jsonObject = xmlValue?eval /> 
79        <#local entryUuid = jsonObject.uuid /> 
80        <#local entryGroupId = getterUtil.getLong(jsonObject.groupId) /> 
81        <#local dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
82        <#local assetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) /> 
83        <#local assetRenderer = assetEntry.assetRenderer /> 
84        <#local docUrl = assetRenderer.getURLDownload(themeDisplay) /> 
85    </#if> 
86 
87    <#return docUrl /> 
88 
89</#function> 
90 
91<script> 
92	AUI().ready(function(A){ 
93		if(A.all('.list-news .news .text-infos a')._nodes.length != 0){ 
94			A.all('.list-news .news .text-infos a')._nodes.forEach(function(z){ 
95				z.href = window.location.origin + window.location.pathname.split('/').filter(function(a, index){ 
96					return index <= 3; 
97				}).join('/') + '/-' + z.href.split('-')[1]; 
98			}); 
99		}	 
100	}); 
101</script> 

Encontre o Sicoob mais próximo de você.

Ou, se preferir, selecione um Estado e Cidade