Java method "com.liferay.portal.kernel.theme.NavItem.hasChildren()" threw an exception when invoked on com.liferay.site.navigation.taglib.internal.util.SiteNavigationMenuNavItem object "com.liferay.site.navigation.taglib.internal.util.SiteNavigationMenuNavItem@9666b"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #if navigationEntry.hasChildren() [in template "38338#38373#54332" at line 28, column 18] ----
1<#assign is_signed_in = themeDisplay.isSignedIn() />
2<#assign sign_out_url = themeDisplay.getURLSignOut() />
3<#assign sign_in_url = themeDisplay.getURLSignIn() />
4<#assign nav_item_class = "" />
5<#assign langId = themeDisplay.getLanguageId() />
6
7<nav class="navbar navbar-expand-lg ">
8 <div class="container-fluid">
9 <div class="navbar-wrapper">
10 <a class="navbar-brand" href="#"> My Vacation Experience </a>
11 </div>
12 <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
13 <span class="navbar-toggler-bar burger-lines"></span>
14 <span class="navbar-toggler-bar burger-lines"></span>
15 <span class="navbar-toggler-bar burger-lines"></span>
16 </button>
17 <div class="collapse navbar-collapse justify-content-end" id="navigation">
18 <#if entries?has_content>
19 <ul class="nav navbar-nav mr-auto">
20 <li class="nav-item">
21 <a href="#" class="nav-link" data-toggle="dropdown">
22 <i class="nc-icon nc-palette"></i>
23 <span class="d-lg-none">Dashboard</span>
24 </a>
25 </li>
26 <#list entries as navigationEntry>
27
28 <#if navigationEntry.hasChildren()>
29 <li class="nav-item dropdown">
30 <#else>
31 <li class="nav-item">
32 </#if>
33
34 <#if navigationEntry.isSelected() >
35 <#assign nav_item_class = nav_item_class + " active" />
36 <#else>
37 <#assign nav_item_class = nav_item_class + "" />
38 </#if>
39
40 <#if navigationEntry.hasChildren()>
41 <a class="nav-link ${nav_item_class} dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
42 <#else>
43 <a class="nav-link ${nav_item_class}" href="${navigationEntry.getURL()}" ${navigationEntry.getTarget()}>
44 </#if>
45 ${navigationEntry.getName()}
46 </a>
47 <#if navigationEntry.hasChildren()>
48 <div class="dropdown-menu">
49 <#list navigationEntry.getChildren() as subEntry>
50 <#if subEntry.isSelected()>
51 <a class="dropdown-item active" href="${subEntry.getURL()}" ${subEntry.getTarget()}>
52 <#else>
53 <a class="dropdown-item" href="${subEntry.getURL()}" ${subEntry.getTarget()}>
54 </#if>
55 ${subEntry.getName()}
56 </a>
57 </#list>
58 </div>
59 </#if>
60 </li>
61 </#list>
62 </ul>
63 </#if>
64 <ul class="navbar-nav ml-auto">
65 <#if locale=="es_ES">
66 <#if !is_signed_in>
67 <li class="nav-item">
68 <a href="${sign_in_url}" id="sign-in" rel="nofollow">
69 <span class="no-icon">Iniciar sesión</span>
70 </a>
71 </span>
72 </li>
73 <#else>
74 <li class="nav-item">
75 <a href="${sign_out_url}" id="sign-out" rel="nofollow">
76 <span class="no-icon">Cerrar sesión</span>
77 </a>
78 </span>
79 </li>
80 </#if>
81 </#if>
82 <#if locale=="en_US">
83 <#if !is_signed_in>
84 <li class="nav-item">
85 <a href="${sign_in_url}" id="sign-in" rel="nofollow">
86 <span class="no-icon">Login</span>
87 </a>
88 </span>
89 </li>
90 <#else>
91 <li class="nav-item">
92 <a href="${sign_out_url}" id="sign-out" rel="nofollow">
93 <span class="no-icon">Logout</span>
94 </a>
95 </span>
96 </li>
97 </#if>
98 </#if>
99 </ul>
100 </div>
101 </div>
102</nav>
103<hr>