Seguici su:
An error occurred while processing the template.
The following has evaluated to null or missing:
==> my_array[3]  [in template "20099#20135#39118" at line 27, column 42]

----
Tip: It's the final [] step 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: #assign nomeimg = my_array[3]?length  [in template "20099#20135#39118" at line 27, column 25]
----
1<#-- Application display templates can be used to modify the look of a specific application. Please use the left panel 
2    to quickly add commonly used variables. Autocomplete is also available and can be invoked by typing "${" . --> 
3    <div class="contenuto"> 
4        <div class="titolopage">Elenco In evidenza</div> 
5        <#if entries?has_content> 
6            <div class="elenco"> 
7                <ul> 
8                    <#list entries as entry> 
9                        <#assign assetRenderer=entry.getAssetRenderer() /> 
10                        <#assign viewURL=assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
11                        <#if assetLinkBehavior !="showFullContent"> 
12                            <#assign viewviewURLURL=assetRenderer.getURLViewInContext(renderRequest, renderResponse, 
13                                viewURL) /> 
14                        </#if> 
15                        <#assign docXml=saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> 
16                        <!--<#assign titolo=docXml.valueOf("//dynamic-element[@name='caption']") /> -->                         
17                        <#assign titolo=entry.getTitle(locale) /> 
18                        <#assign immagine=docXml.valueOf("//dynamic-element[@name='img_evidenza']") /> 
19                        <#assign descr_immagine=docXml.valueOf("//dynamic-element[@name='descr_img']") /> 
20                        <#assign my_array=[] /> 
21                        <#list immagine?split(",") as x> 
22                            <#assign elemento=x /> 
23                            <#list elemento?split(":") as y> 
24                                <#assign my_array=my_array + [y] /> 
25                            </#list> 
26                        </#list> 
27                        <#assign nomeimg=my_array[3]?length /> 
28                        <#assign codimg=my_array[7]?length /> 
29                        <li> 
30                            <div class="lista"> <a title="approfondisci ${titolo}" href="${viewURL}"> <img align="left" 
31                                        alt="${descr_immagine}" title="${descr_immagine}" src="/documents/20126/145947/${my_array[3]?substring(1,nomeimg-1)}/${my_array[7]?substring(1,codimg-1)}" /> 
32                                    <span class="titolo">${titolo}</span> </a> 
33                                <div class="data" style="clear: both;"> ${dateUtil.getDate(entry.getPublishDate(), "dd 
34                                    MMM yyyy", locale)} </div> 
35                            </div> 
36                        </li> 
37                    </#list> 
38                </ul> 
39            </div> 
40        </#if> 
Node: liferaydxp-1-1:8080