- Corregedoria Geral da Justiça do Estado do Rio de Janeiro
- Testes Diversos
Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing: ==> campos["sepDestaque"]["exibeDestaque"] [in template "10112#156075#9180900" at line 14, column 42] ---- 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 teste = campos["sepDestaque"]... [in template "10112#156075#9180900" at line 14, column 25] ----
1<#if entries?has_content>
2 <#assign urlBase = portalUtil.getPortalURL(request, portalUtil.isSecure(request)) + "/"/>
3
4 <#assign urlViewNoticia = urlBase + "web/cgj/noticias/noticia/-/visualizar-conteudo/"/>
5
6 <ul class="lista-noticias">
7 <#list entries as curEntry>
8 <#assign renderer = curEntry.getAssetRenderer()/>
9 <#assign journal = renderer.getArticle()/>
10 <#assign campos = customJournalAdtUtil.generateJournalArticleObjects(journal, themeDisplay)/>
11
12 <#assign urlArtigo = urlViewNoticia + campos["groupId"] + "/" + campos["articleId"] />
13
14 <#assign teste = campos["sepDestaque"]["exibeDestaque"] />
15
16 <#assign test = teste[2] />
17
18 <#if test=="2">
19
20 <li>
21 <span class="data">
22 <a href="${urlArtigo}">${campos["title"]}</a><span>${test}</span>
23 </span>
24
25 </li>
26
27 </#if>
28 </#list>
29 </ul>
30 <#assign vejaMais = "VEJA A LISTA COMPLETA DE NOTÍCIAS"/>
31 <div class="leia-mais">
32 <a href="${urlBase}web/cgj/noticias" alt='${vejaMais}' title='${vejaMais}'>VEJA A LISTA COMPLETA DE NOTÍCIAS</a>
33 </div>
34</#if>