Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> curEntry.getTitle(locale)  [in template "20099#20135#437342" at line 34, column 43]

----
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: ${curEntry.getTitle(locale)}  [in template "20099#20135#437342" at line 34, column 41]
----
1<#setting time_zone=timeZone.ID> 
2<#setting locale=locale.toString()> 
3 
4<div class="rt-home-content__comunicati"> 
5    <div class="rt-row rt-row-3-cols"> 
6        <#if entries?has_content> 
7            <#list entries as curEntry> 
8 
9                <#assign assetRenderer = curEntry.getAssetRenderer() /> 
10                <#assign className = assetRenderer.getClassName() /> 
11 
12                <#if className = "com.liferay.journal.model.JournalArticle" > 
13                    <#assign article = assetRenderer.getArticle() />  
14                    <#if article?? >  
15 
16                        <#assign docXml = saxReaderUtil.read(article.getContent()) /> 
17 
18                        <#assign linkComunicato = docXml.valueOf("//dynamic-element[@name='LinkComunicato']/dynamic-content/text()") /> 
19                        <#assign data = docXml.valueOf("//dynamic-element[@name='DataComunicato']/dynamic-content/text()") /> 
20                        <#assign display_date = data?datetime("yyyy-MM-dd") /> 
21                        <#assign display_date = display_date?string["dd MMMM yyyy"] /> 
22 
23 
24                        <div class="rt-portlet-box"> 
25                            <a href="${linkComunicato?html}" class="rt-portlet-box__content"> 
26                                <div class="rt-portlet-box__body"> 
27                                    <div class="rt-portlet-box__infos"> 
28                                        <div class="rt-portlet-box__infos-date"> 
29                                            ${display_date?html} 
30                                        </div> 
31                                    </div> 
32 
33                                    <h2 class="rt-portlet-box__title"> 
34                                        ${curEntry.getTitle(locale)} 
35                                    </h2> 
36 
37                                </div> 
38                            </a> 
39                        </div> 
40                    </#if> 
41                </#if>     
42            </#list> 
43        </#if> 
44    </div> 
45</div>