An error occurred while processing the template.
The following has evaluated to null or missing:
==> data.num_exp?split("/")[3]  [in template "37727#37775#183998" at line 43, column 62]

----
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 numero_expediente = data.num_...  [in template "37727#37775#183998" at line 43, column 33]
----
1<#assign freeMarkerUtilities = serviceLocator.findService("es.alava.freemarker.utilities.api.FreemarkerUtilities") /> 
2<#assign isEmptyJSON = data.getJSONObject().length() == 0 /> 
3 
4<#if status == 200 && data?? && data!='null' && !isEmptyJSON> 
5	<#assign locale = miLocale /> 
6    <section class="titulo-de-pagina"> 
7        <div class="container"> 
8            <a class="enlace-a-inicio" href="${redirect}">${languageUtil.get(resourceBundle, "volver")}</a> 
9        </div> 
10		<#if ((locale = "es_ES" && (data.enunciado?? && data.enunciado !='null')) ||(locale = "eu_ES" && (data.enunciado_e?? && data.enunciado_e !='null'))) > 
11	        <div class="titulo-principal"> 
12	            <div class="container"> 
13		            <h2 class="descripcion">${(locale=="eu_ES")?then(data.enunciado_e, data.enunciado)}</h2> 
14	            </div> 
15	        </div> 
16		</#if> 
17    </section> 
18    <section class="detalle-iniciativa"> 
19        <div class="container"> 
20            <div class="row"> 
21                <div class="col-12"> 
22                    <div class="info-destacada"> 
23                        <ul class="informacion-principal"> 
24                            <li> 
25                                <strong>${languageUtil.get(resourceBundle, "type")}: </strong><span>${(locale=="eu_ES")?then(data.tipo_e, data.tipo)}</span> 
26	                            <#if data.documento?? && data.documento !='null'> 
27		                            <#assign descarga = freeMarkerUtilities.getURLDocument(data.documento)> 
28		                            <a class="download" href="${descarga}" target="_blank">${languageUtil.get(resourceBundle, "adt-detalle-expediente.ver-documento")}</a> 
29	                            </#if> 
30                            </li> 
31                            <li> 
32                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.fecha")}: </strong><span>${ data.fechaDocumento}</span> 
33                            </li> 
34                            <li> 
35                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.numero")}: </strong><span>${ data.numero}</span> 
36                            </li> 
37                            <li> 
38                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.organo")}: </strong><span>${(locale=="eu_ES")?then(  data.organo_e, data.organo)}</span> 
39                            </li> 
40                            <li> 
41                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.expediente-asociado")}: </strong> 
42                                <#assign legislatura = data.num_exp?split("/")[0]/> 
43                                <#assign numero_expediente = data.num_exp?split("/")[3]/> 
44                                <a class="enlace" href="javascript:cargarDetalle(${legislatura},${numero_expediente},'${themeDisplay.getURLCurrent()?replace("&","_amp_")}');">${data.num_exp}</a>                                 
45                            </li> 
46                            <li> 
47                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.fuente")}: </strong><span>${(locale=="eu_ES")?then( data.fuente_e, data.fuente)} / ${ data.num_fuente}</span> 
48                            </li> 
49                            <li> 
50                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.fecha-publicacion")}: </strong><span>${ data.fechaPublicacion}</span> 
51                            </li> 
52 
53                        </ul> 
54                        <div class="enlaces"> 
55							<#if data.documentoRelacionado.length() gt 0 || ( data.documentoCorreccion?? && data.documentoCorreccion !='null'&& data.documentoCorreccion?has_content)> 
56								 <h3>${languageUtil.get(resourceBundle, "related-documents")}</h3> 
57								<#assign documentosRelacionados = data.documentoRelacionado/> 
58								<#assign tipoDocumentoRelacionado = data.tipoDocumentoRelacionado/> 
59								 <ul> 
60									<#if data.documentoRelacionado.length() gt 0> 
61										<#list 0..documentosRelacionados.length()-1 as i> 
62											<#assign descarga = freeMarkerUtilities.getURLDocument(documentosRelacionados.get(i))> 
63		                                    <li><a class="download" href="${descarga}" target="_blank">${tipoDocumentoRelacionado.get(i)}</a></li> 
64										</#list> 
65									</#if> 
66									 <#if data.documentoCorreccion?? && data.documentoCorreccion !='null'&& data.documentoCorreccion?has_content> 
67										 <#assign descarga = freeMarkerUtilities.getURLDocument(data.documentoCorreccion)> 
68										 <li><a class="download" href="${descarga}" target="_blank">${languageUtil.get(locale, "adt-detalle-norma.correccion")}</a></li> 
69									 </#if> 
70								 </ul> 
71							</#if> 
72                        </div> 
73                    </div> 
74                </div> 
75            </div> 
76        </div> 
77    </section> 
78<#else> 
79	<div class="container"> 
80		<a class="enlace-a-inicio" href="${redirect}">${languageUtil.get(resourceBundle, "volver")}</a> 
81	</div> 
82    <#if themeDisplay.isSignedIn()> 
83        <div class="my-3"> 
84            <div class="container"> 
85                <div class="alert alert-danger"> 
86                    <p class="mb-0"><b>Status: </b> ${status}</p> 
87                </div> 
88            </div> 
89        </div> 
90    <#else> 
91        <#-- ${request.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", false)} --> 
92    </#if> 
93    <#if isEmptyJSON> 
94        <div class="container"> 
95            <div class="alert alert-danger"> 
96                <p class="mb-0"> 
97                    <@liferay.language key="${(miLocale=='eu_ES')?then( 
98                        'Zure eskaera ezin izan da behar bezala gauzatu', 
99                        'your-request-failed-to-complete')}" /> 
100                </p> 
101            </div> 
102        </div> 
103    </#if>  
104</#if> 
105<script> 
106    function cargarDetalle(legislatura, numero_expediente, currentURL) { 
107        window.location.href= "/detalle-exp?t=E&leg=" + legislatura + "&num=" + numero_expediente  + "&redirect=" + currentURL; 
108
109</script>