Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> entry.getAssetRenderer()  [in template "20102#20128#1144095" at line 22, column 42]

----
Tip: If the failing expression is known to 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 assetRenderer = entry.getAsse...  [in template "20102#20128#1144095" at line 22, column 17]
----
1<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
3 
4<#assign siteFriendlyUrl = themeDisplay.getPathFriendlyURLPublic() + themeDisplay.getSiteGroup().getFriendlyURL() /> 
5<#assign targetViewUrl = siteFriendlyUrl + "/noticias" /> 
6 
7<#assign currentGroupId = themeDisplay.getScopeGroupId() /> 
8<#if currentGroupId == 16955485> 
9    <#assign targetPortletID = "sw94nHB98CPA" /> 
10<#else> 
11    <#assign targetPortletID = "xAioIawpOI5S" /> 
12</#if>   
13 
14<#if entries?has_content> 
15    <div class="list-news" style="margin-top: 50px;"> 
16        <#list entries as entry> 
17            <#assign className = entry.getClassName() /> 
18            <#assign pictureURL = "" /> 
19            <#assign viewURL = "" /> 
20 
21            <#if className == "com.liferay.journal.model.JournalArticle"> 
22                <#assign assetRenderer = entry.getAssetRenderer() />  
23                <#assign journalArticle = assetRenderer.getArticle() /> 
24                <#assign docXml = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) /> 
25                <#assign xmlValue = docXml.valueOf("//dynamic-element[@name='image']/dynamic-content/text()") /> 
26                 
27                <#if xmlValue?has_content> 
28                    <#assign pictureURL = getArticleDLEntryUrl(xmlValue) /> 
29                </#if> 
30                 
31                <#if entry.getGroupId() == themeDisplay.getSiteGroupId()> 
32                    <#assign viewURL = "${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/${journalArticle.getUrlTitle()}" /> 
33                <#else> 
34                    <#assign viewURL = "${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/id/${entry.getEntryId()}" /> 
35                </#if> 
36            <#else> 
37                <#assign viewURL = "${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/id/${entry.getEntryId()}" /> 
38            </#if> 
39 
40            <#assign categories = entry.getCategories()> 
41 
42            <div class="news"> 
43                <div class="row"> 
44                    <#if pictureURL?has_content> 
45                        <div class="col-sm-12 col-md-5"> 
46                            <div class="background-image" style="background-image: url('${pictureURL}');"> 
47                                <#if categories?has_content> 
48                                    <p class="list-category text-truncate"> 
49                                        <#list categories as category> 
50                                            <span class="category"> 
51                                                ${category.getName()} <#sep> &nbsp; 
52                                            </span> 
53                                        </#list> 
54                                    </p> 
55                                </#if> 
56                            </div> 
57                        </div> 
58                    <div class="col-sm-12 col-md-7 text-infos"> 
59                    <#else> 
60                    <div class="col-12 text-infos"> 
61                    </#if> 
62                        <span class="info-top hour">${entry.getTitle(locale)} &bull; ${entry.getModifiedDate()?string("dd/MM/yyyy")}</span> 
63                        <h3> 
64                            <a href="${viewURL}"> 
65                                ${entry.getTitle(locale)} 
66                            </a> 
67                        </h3> 
68 
69                        <#assign summary = htmlUtil.stripHtml(entry.getSummary(locale)) /> 
70                        <#if summary?has_content> 
71                            <div class="summary" style="overflow:hidden;"> 
72                                ${(summary?length < 160)?then(summary, summary?substring(0, 160) + '...')} 
73                            </div> 
74                        </#if> 
75                    </div> 
76                </div> 
77            </div> 
78        </#list> 
79    </div> 
80<#else> 
81    <div class="alert alert-info"> 
82        Não existe notícia cadastrada. 
83    </div> 
84</#if> 
85 
86<#function getArticleDLEntryUrl rawValue> 
87    <#local docUrl = "" /> 
88 
89    <#if rawValue?has_content> 
90        <#local cleanValue = rawValue?trim /> 
91 
92        <#if cleanValue?starts_with("{")> 
93            <#attempt> 
94                <#local jsonObject = jsonFactoryUtil.createJSONObject(cleanValue) /> 
95                 
96                <#if jsonObject.has("uuid") && jsonObject.has("groupId")> 
97                    <#local entryUuid = jsonObject.getString("uuid") /> 
98                    <#local entryGroupId = jsonObject.getLong("groupId") /> 
99                    <#local dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
100                    <#local assetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) /> 
101                    <#local assetRenderer = assetEntry.assetRenderer /> 
102                    <#local docUrl = assetRenderer.getURLDownload(themeDisplay) /> 
103                </#if> 
104            <#recover> 
105                <#local docUrl = "" /> 
106            </#attempt> 
107        <#else> 
108            <#if cleanValue?contains("/")> 
109                <#local docUrl = cleanValue /> 
110            </#if> 
111        </#if> 
112    </#if> 
113 
114    <#return docUrl /> 
115</#function> 
116 
117<style>.list-news .news .text-infos {height: unset;}</style> 
118 
119<script> 
120    (function() { 
121        if (window.history && window.history.replaceState) { 
122            var currentUrl = window.location.href; 
123            var targetPath = "${targetViewUrl}"; 
124             
125            if (currentUrl.indexOf('/content/') === -1) { 
126                if (currentUrl.indexOf('/-/asset_publisher/') > -1 ||  
127                    currentUrl.indexOf('p_r_p_assetEntryId') > -1 ||  
128                    window.location.hash) { 
129                    window.history.replaceState(null, '', targetPath); 
130
131
132
133    })(); 
134</script>