Um erro ocorreu enquanto processava o modelo.
The following has evaluated to null or missing:
==> entry  [in template "10132#10165#14729741" at line 2, column 21]

----
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 renderer = entry.getAssetRend...  [in template "10132#10165#14729741" at line 2, column 3]
----
1<#-- Freemarker template for wiki selected in asset publisher. It will show a menu with this wiki children for selecting a child wiki content assynchronously. --> 
2  <#assign renderer=entry.getAssetRenderer() /> 
3  <#assign serviceContext=staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
4    <#assign httpServletRequest=serviceContext.getRequest()> 
5      <#-- @a_page_anchor Selected page --> 
6        <#assign a_page_anchor=paramUtil.getLong(request, 'a_page_anchor' )> 
7          <#assign a_pageResourcePrimKey=paramUtil.getLong(request, '_36_pageResourcePrimKey' )> 
8            <#assign WikiPageLocalService=serviceLocator.findService("com.liferay.wiki.service.WikiPageLocalService")> 
9              <#assign item=WikiPageLocalService.getPage(entry.getClassPK()) /> 
10              <#assign permissionChecker=themeDisplay.getPermissionChecker()> 
11 
12                <div id="wiki-menu-content" class="row"> 
13                  <div class="col-md-3 portlet-navigation"> 
14                    <div id="btn-itens-menu" class="visible-phone d-md-none"> 
15                      <a class="btn btn-navbar"> 
16                        <i class="icon-reorder"></i>&nbsp;${item.title} 
17                      </a> 
18                    </div> 
19                    <div id="navigation-menu" class="menu nav-menu nav-menu-style- hidden-phone" style="background-color:#FFF"> 
20                      <@createItemTOC item=item level=1 /> 
21                    </div> 
22                  </div> 
23                  <div class="col-md-9"> 
24                    <!--div id="exportPage" class="pull-right"> 
25            <#assign exportPageURL = renderResponse.createActionURL() /> 
26			${exportPageURL.setParameter("struts_action", "/asset_publisher/export_wiki_page")} 
27			${exportPageURL.setParameter("title", item.getTitle())} 
28	        ${exportPageURL.setParameter("nodeId", "" + item.getNodeId())} 
29	        ${exportPageURL.setParameter("targetExtension", "pdf")} 
30	        ${exportPageURL.setWindowState("exclusive")} 
31		    <@liferay_ui["icon"] 
32                image="../file_system/small/pdf" 
33                message="PDF" 
34                label=true 
35                method="get" 
36                url=exportPageURL.toString() 
37            /> 
38        </div--> 
39                    <div id="pageContent"> 
40                      <div> 
41                        <#if a_page_anchor gt 0> 
42													<#attempt> 
43                            <#assign itemPage=WikiPageLocalService.getPageByPageId(a_page_anchor) /> 
44                            <#recover> 
45                               <#assign itemPage=item /> 
46                          </#attempt> 
47                          <#assign item=itemPage/> 
48                          <#if !item.isHead()> 
49                            <#assign item=WikiPageLocalService.getPage(item.getNodeId(), item.getTitle()) /> 
50                          </#if> 
51                          <#else> 
52                            <#if a_pageResourcePrimKey gt 0> 
53															<#attempt> 
54                                <#assign itemPage=WikiPageLocalService.getPage(a_pageResourcePrimKey) /> 
55                                <#recover> 
56                                 <#assign itemPage=item /> 
57                              </#attempt> 
58                              <#assign item=itemPage/> 
59                            </#if> 
60                        </#if> 
61                        <#if permissionChecker.hasPermission(item.getGroupId(), "com.liferay.wiki.model.WikiPage" , item.getResourcePrimKey(), "VIEW" )> 
62                          <#assign content=item.content> 
63                            ${content} 
64                            <#if stringUtil.split(metadataFields)?seq_contains("view-count")> 
65                              <div class="metadata-entry metadata-view-count pull-right"> 
66                                <#if entry.viewCount==1> 
67                                  ${entry.viewCount} visualização 
68                                </#if> 
69                                <#if entry.viewCount gt 1> 
70                                  ${entry.viewCount} visualizações 
71                                </#if> 
72                              </div> 
73                            </#if> 
74                            <#if stringUtil.split(metadataFields)?seq_contains("author")> 
75                              <div class="metadata-entry metadata-view-count pull-right"> 
76                                <#assign groupLocalService=serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")> 
77                                  <#assign group=groupLocalService.getGroup(entry.getGroupId())> 
78                                    <#assign groupName=group.getDescriptiveName()> 
79                                      Por ${groupName} 
80                              </div> 
81                            </#if> 
82                        </#if> 
83                      </div> 
84                    </div> 
85                  </div> 
86                </div> 
87                <#macro createItemTOC item level> 
88                  <#if level gt 1 && item.nodeId !=a_page_anchor> 
89                    <#assign toggler="toggler-header-collapsed"> 
90                      <#else> 
91                        <#assign toggler="toggler-content-expanded"> 
92                  </#if> 
93                  <ul id="contentToggler" class="content layouts level-${level} ${toggler} menu__list first-level"> 
94                    <#if level==1> 
95                      <li> 
96                        <a href="${currentURL}"> 
97                          <i class="icon-home"></i>&nbsp;${item.title} 
98                        </a> 
99                      </li> 
100                    </#if> 
101                    <#assign childs=item.viewableChildPages> 
102                      <#list childs as child> 
103                        <#if child.redirectTitle=='' && permissionChecker.hasPermission(child.getGroupId(), "com.liferay.wiki.model.WikiPage" , child.getResourcePrimKey(), "VIEW" )> 
104                          <li> 
105                            <#if child.primaryKey==a_page_anchor> 
106                              <#assign toggler="toggler-header-expanded"> 
107                                <#else> 
108                                  <#assign toggler="toggler-header-collapsed"> 
109                            </#if> 
110 
111                            <a id="${child.primaryKey}" href="${currentURL}&a_page_anchor=${child.primaryKey}" onclick="goPage(${child.primaryKey});" class="wiki-link header ${toggler}"> 
112                              ${child.title} 
113                            </a> 
114                            <@createItemTOC item=child level=level+1 /> 
115                          </li> 
116                        </#if> 
117                      </#list> 
118                  </ul> 
119                </#macro> 
120 
121                <style type="text/css"> 
122                  #pageContent { 
123                    padding-left: 10px; 
124                    padding-right: 10px; 
125
126                </style> 
127 
128                <script type="text/javascript"> 
129                  function toggleMenu() { 
130                    AUI().use('aui-node', function (A) { 
131                      var menu = A.one('#navigation-menu'); 
132                      if (menu.hasClass('hidden-phone')) { 
133                        menu.replaceClass('hidden-phone', 'visible-phone'); 
134                      } else { 
135                        menu.replaceClass('visible-phone', 'hidden-phone'); 
136
137                    }); 
138
139                  AUI().use('aui-toggler', 'aui-node', function (A) { 
140                    // create navigation menu toggler 
141                    var menuToggler = new A.TogglerDelegate({ 
142                      container: '#contentToggler', 
143                      content: '.content', 
144                      header: '.header', 
145                      expanded: false, 
146                      animated: true, 
147                      closeAllOnExpand: true 
148                    }); 
149                    var selectedPage = A.one("#${a_page_anchor}"); 
150                    if (selectedPage != null) { 
151                      openPageMenu(selectedPage); 
152
153                    A.one('#btn-itens-menu').on( 
154                      'click', 
155                      toggleMenu 
156                    ); 
157                  }); 
158                  function openPageMenu(selectedPage) { 
159                    selectedPage.ancestorsByClassName('toggler-header-collapsed').each(function (ancestorPage) { 
160                      ancestorPage.replaceClass('toggler-header-collapsed', 'toggler-header-expanded'); 
161                      ancestorPage.replaceClass('toggler-content-collapsed', 'toggler-content-expanded'); 
162                      openPageMenu(ancestorPage); 
163                    }); 
164
165                  function goPage(nodeId) { 
166                    window.location.href = '${currentURL}&a_page_anchor=' + nodeId; 
167
168                </script> 
169                <script> 
170                  $(document).ready(function () { 
171                    $(".toggler-content-wrapper").siblings().addClass("teste") 
172                  }); 
173                </script>