Hide Forgot
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000007AoQO Steps to Reproduce: 1. Remove 'dashboard' context in jboss-portal[-ha].sar/conf/data/default-object.xml 2. Start the server and log in project_key: JBEPP Removing the dashboard context from default-object.xml results in the following NPE when a user logs in: 18:37:29,578 ERROR [ContainerBase] Servlet.service() for servlet PortalServletWithPathMapping threw exception java.lang.NullPointerException at org.jboss.portal.core.impl.model.CustomizationManagerService.getDashboardIdFor(CustomizationManagerService.java:374) at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.injectDashboardNav(PageCustomizerInterceptor.java:256) at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:164) at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40) The NPE is happening at this call: Context dashboardContext = portalObjectContainer.getContext(dashboardContextId); As the getContext(String) method can return a null value, there should be a proper null check.
Attaching patch proposal to address the NPE.
Attachment: Added: JBEPP-928.patch
Release Notes Docs Status: Added: Not Yet Documented
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue Release Notes Text: Added: Removing the dashboard context from default-object.xml resulted in a Null Pointer Exception (NPE) when a user authenticated. The fix ensures that a proper null check is performed at the dashboardContext = portalObjectContainer.getContext(dashboardContextId) call, which fixes the issue.