Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> valores[1] [in template "20099#20125#100274" at line 28, column 93]
----
Tip: It's the final [] step that caused this error, not those before it.
----
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 tamano2 = valores[1]?length [in template "20099#20125#100274" at line 28, column 73]
----
1<#if entries?has_content>
2 <section class="list_news_2 container">
3 <ul class="list_news row">
4 <#list entries as curEntry>
5 <#assign
6 renderer = curEntry.getAssetRenderer()
7 journalArticle = renderer.getArticle()
8
9 document = saxReaderUtil.read(journalArticle.getContent())
10 rootElement = document.getRootElement()
11 image = saxReaderUtil.createXPath("dynamic-element[@name='CopyOfImage75325058']/dynamic-content").selectSingleNode(rootElement).getStringValue()?trim
12 title = saxReaderUtil.createXPath("dynamic-element[@name='CopyOfText01336552']").selectSingleNode(rootElement).getStringValue()?trim
13 summary = saxReaderUtil.createXPath("dynamic-element[@name='CopyOfRichText09027401']").selectSingleNode(rootElement).getStringValue()?trim
14 date = saxReaderUtil.createXPath("dynamic-element[@name='CopyOfDate53970081']").selectSingleNode(rootElement).getStringValue()?trim?datetime("yyyy-MM-dd")?date
15 linkDetail = curEntry.getAssetRenderer().getURLViewInContext(renderRequest, renderResponse, "")
16
17 hashMapImage = {}
18 hashMapFile = {}
19
20 />
21
22 <#-- MAPEO DE LA IMAGEN INICIO -->
23 <#assign image = image?remove_beginning("{") >
24 <#assign image = image?remove_ending("}") >
25 <#list image?split(",") as x>
26 <#assign valores = x?split(":") >
27 <#assign tamano = valores[0]?length >
28 <#assign tamano2 = valores[1]?length >
29 <#assign hashMapImage += {valores[0]?substring(1,tamano-1):valores[1]?substring(1,tamano2-1)}>
30 </#list>
31 <#list hashMapImage as key, value>
32 <#if key="groupId">
33 <#assign groupIdImage = value>
34 <#elseif key="uuid">
35 <#assign uuidImage = value >
36 </#if>
37 </#list>
38 <#-- MAPEO DE LA IMAGEN FINAL -->
39
40
41
42 <li class="item col-12 col-md-12 col-lg-6">
43 <div class="new">
44 <a href="${linkDetail}" class="link_all">
45 <span class="sr-only">${title}</span>
46 </a>
47 <div class="image">
48 <#if groupIdImage?? && uuidImage??>
49 <img src="/documents/${groupIdImage}/${uuidImage}" alt="">
50 </#if>
51 </div>
52 <div class="content">
53 <div class="titular">
54 <h3 class="title_small">${title}</h3>
55 <#-- <p class="category">
56 <#if curEntry.getCategories()?has_content>
57 ${curEntry.getCategories()[0].getName()}
58 </#if>
59 </p> -->
60 <p class="date">${date?string["dd/MM/yyyy"]}</p>
61 </div>
62 <div class="content_text small">
63 ${summary?substring(0,160)}...
64 </div>
65 </div>
66 </div>
67 </li>
68 </#list>
69 </ul>
70 </section>
71</#if>