Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> paramsMap["sessname"]  [in template "10154#10192#39575784" at line 14, column 22]

----
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 sessionName = paramsMap["sess...  [in template "10154#10192#39575784" at line 14, column 1]
----
1<#assign current_url = htmlUtil.escape(renderRequest.getAttribute("CURRENT_COMPLETE_URL"))> 
2<#assign paramsMap = {}> 
3 
4<#assign parameters = current_url?split("?")[1]> 
5 
6<#assign paramsArr = parameters?split("&amp;")> 
7 
8<#list paramsArr as pair > 
9    <#assign params = pair?split("=")> 
10    <#assign paramsMap+= {params[0]:htmlUtil.escape(httpUtil.decodeURL(params[1]))}> 
11</#list> 
12 
13<#assign sessionId=paramsMap["sessid"]> 
14<#assign sessionName=paramsMap["sessname"]> 
15 
16<#attempt> 
17    <#assign allAgendaBySessionMap = memberWrapper.getAgendasForSession(sessionId)> 
18 
19    <#recover> 
20        <#assign allAgendaBySessionMap = ""> 
21</#attempt> 
22 
23<script> 
24    $(document).ready(function () { 
25        $(".documents-tab-nav-x p").click(function () { 
26            var anchor = $(this).attr('anchor'); 
27            $(".documents-tab-nav-x p").removeClass("selected"); 
28            $(this).addClass("selected"); 
29            $(".document-browser-tab").removeClass("active"); 
30            $(".document-browser-tab." + anchor).addClass("active"); 
31        }); 
32    }); 
33</script> 
34 
35<div class="documents-browser container"> 
36    <div class="row"> 
37        <div class="col-lg-10 offset-lg-1 col-md-12"> 
38            <h2 class="color">${sessionName}</h2> 
39        </div> 
40    </div> 
41 
42    <#-- For some reason Spanish has acronym "sp" instead of proper ISO code "es" --> 
43    <#assign currentLocale = (locale.getLanguage() == "es")?then("sp", locale.getLanguage())> 
44 
45    <#if allAgendaBySessionMap?hasContent> 
46        <div class="row"> 
47            <div class="col-lg-10 offset-lg-1 col-md-12"> 
48                <div class="documents-nav-container"> 
49                    <div class="documents-tab-nav-x"> 
50                        <p anchor="ar" class="${(currentLocale == 'ar')?then('selected', '')}"><@liferay.language key="arabic" /></p> 
51                        <p anchor="en" class="${(currentLocale == 'en')?then('selected', '')}"><@liferay.language key="english" /></p> 
52                        <p anchor="fr" class="${(currentLocale == 'fr')?then('selected', '')}"><@liferay.language key="french" /></p> 
53                        <p anchor="sp" class="${(currentLocale == 'sp')?then('selected', '')}"><@liferay.language key="spanish" /></p> 
54                    </div> 
55                </div> 
56            </div> 
57        </div> 
58 
59        <div class="row"> 
60            <div class="col-lg-10 offset-lg-1 col-md-10"> 
61 
62                <#list allAgendaBySessionMap?keys as agendaKey> 
63 
64                    <#if agendaKey == currentLocale> 
65                        <#assign isActive = "active"> 
66                    <#else> 
67                        <#assign isActive = ""> 
68                    </#if> 
69 
70                    <div class="document-browser-tab ${agendaKey} ${isActive}"> 
71 
72                        <#if agendaKey=="ar"> 
73                            <#assign arclass = "-ar"> 
74                        <#else> 
75                            <#assign arclass = ""> 
76                        </#if> 
77 
78                        <div class="document-node"> 
79                            <div class="row"> 
80                                <div class="col-lg-10 offset-lg-1 col-md-10"> 
81 
82                                    <#list allAgendaBySessionMap[agendaKey]?keys as agendaItemMapKey> 
83                                        <div class="doc-row${arclass}"> 
84                                            <h3>${agendaItemMapKey.title}</h3> 
85 
86                                            <#assign subMap = allAgendaBySessionMap[agendaKey]> 
87 
88                                            <#list subMap as agenda,documents> 
89                                                <#-- The following condition is here because freemarker 
90                                                has some issues with getting Map value if the key is not String--> 
91                                                <#if agenda = agendaItemMapKey> 
92                                                    <#list documents as doc> 
93                                                        <#if doc??> 
94                                                            <div class="doc-link"> 
95                                                                <#if doc.accessible == false> 
96                                                                    <i class="fa fa-lock"></i> 
97                                                                </#if> 
98                                                                <#if doc.url??> 
99                                                                    <a href="${doc.url}" style="color:#11B6D6;" 
100                                                                       target="_blank">${doc.code}</a> 
101                                                                </#if> 
102                                                            </div> 
103                                                            <div class="doc-title${arclass}"> ${doc.title} </div> 
104                                                            <#if doc.description?hasContent> 
105                                                                <div class="doc-description${arclass}"><i 
106                                                                            class="fa fa-download"></i> ${doc.description} 
107                                                                </div> 
108                                                            </#if> 
109                                                        </#if> 
110                                                    </#list> 
111                                                </#if> 
112                                            </#list> 
113                                        </div> 
114                                    </#list> 
115                                </div> 
116                            </div> 
117                        </div> 
118                    </div> 
119                </#list> 
120            </div> 
121        </div> 
122    <#else> 
123        <div><@liferay.language key="err-msg-no-docs" /></div> 
124    </#if> 
125</div>