Hide Forgot
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A00000044Cvf&sfdc.override=1 project_key: JBEPP If there's no navigation.xml created for a LDAP user, NullPointerException is thrown from UIUserToolBarDashboardPortlet.gtmpl: ERROR [org.exoplatform.webui.application.portlet.PortletApplicationController] (ajp-0.0.0.0-10209-1) Error while rendering the porlet org.exoplatform.groovyscript.TemplateRuntimeException: Groovy template exception at DataText[pos=Position[col=1,line=94],data= if(currentUserNavigation.getNodes() ==null || currentUserNavigation.getNodes().size() < 1){ ] for template app:/groovy/admintoolbar/webui/component/UIUserToolBarDashboardPortlet.gtmpl at org.exoplatform.groovyscript.GroovyScript.buildRuntimeException(GroovyScript.java:162) at org.exoplatform.groovyscript.GroovyScript.render(GroovyScript.java:105) at org.exoplatform.groovyscript.GroovyTemplate.render(GroovyTemplate.java:112) at org.exoplatform.groovyscript.text.TemplateService.merge(TemplateService.java:117) at org.exoplatform.webui.core.lifecycle.Lifecycle.renderTemplate(Lifecycle.java:132) at org.exoplatform.webui.core.lifecycle.Lifecycle.processRender(Lifecycle.java:85) at org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle.processRender(UIApplicationLifecycle.java:66) at org.exoplatform.webui.core.UIComponent.processRender(UIComponent.java:148) at org.exoplatform.webui.core.UIPortletApplication.processRender(UIPortletApplication.java:103) at org.exoplatform.webui.application.portlet.PortletApplication.render(PortletApplication.java:254) at org.exoplatform.webui.application.portlet.PortletApplicationController.render(PortletApplicationController.java:110) .... This could be fixed changing the following code in UIUserToolBarDashboardPortlet.gtmpl: if(currentUserNavigation.getNodes() ==null || currentUserNavigation.getNodes().size() < 1){ to if(currentUserNavigation==null || currentUserNavigation.getNodes() ==null || currentUserNavigation.getNodes().size() < 1){
Link: Added: This issue depends GTNPORTAL-1596
The Proposed Release Note text above needs to be verified when this JIRA is closed.
Release Notes Docs Status: Added: Not Yet Documented Release Notes Text: Added: Proposed Release Note text: A NullPointerException would be encountered if no navigation.xml had been created for an LDAP user. A change to code in UIUserToolBarDashboardPortlet.gtmpl has corrected this issue by including a clause for this circumstance.
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue
Release Notes Docs Status: Removed: Documented as Resolved Issue Added: Documented as Known Issue Release Notes Text: Removed: Proposed Release Note text: A NullPointerException would be encountered if no navigation.xml had been created for an LDAP user. A change to code in UIUserToolBarDashboardPortlet.gtmpl has corrected this issue by including a clause for this circumstance. Added: A NullPointerException is encountered if no navigation.xml has been created for an LDAP user.
Release Notes Docs Status: Removed: Documented as Known Issue Added: Documented as Resolved Issue
Release Notes Text: Removed: A NullPointerException is encountered if no navigation.xml has been created for an LDAP user. Added: In previous releases, a NullPointerException would be encountered if no navigation.xml had been created for an LDAP user. A change to code in UIUserToolBarDashboardPortlet.gtmpl has corrected this issue by including a clause for this circumstance.