You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/10/07 13:00:00 UTC
[jira] [Closed] (OFBIZ-13651) Navigate Accounts (GlAccountNavigate) fails with a NullPointerException when no glAccountId is given
[ https://issues.apache.org/jira/browse/OFBIZ-13651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mridul Pathak closed OFBIZ-13651.
---------------------------------
Fix Version/s: Upcoming Branch
24.09.08
Resolution: Fixed
> Navigate Accounts (GlAccountNavigate) fails with a NullPointerException when no glAccountId is given
> ----------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-13651
> URL: https://issues.apache.org/jira/browse/OFBIZ-13651
> Project: OFBiz
> Issue Type: Bug
> Components: framework/widget
> Affects Versions: Upcoming Branch, 24.09.07
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Major
> Fix For: Upcoming Branch, 24.09.08
>
> Attachments: GLAccountNavigate.png
>
>
> Opening \{{accounting/control/GlAccountNavigate}} without \{{glAccountId}} (Global GL Settings > Chart of Accounts > Navigate Accounts) throws an NPE in \{{StringUtil.join}}, called from \{{MacroTreeRenderer.renderNodeBegin}}. The tree root is a pseudo node with no GL account of its own, so its pk resolves to the screen's \{{glAccountId}}, and a null id ends up in \{{currentNodeTrail}}. When \{{glAccountId}} is passed, the selected account becomes a meaningless first element of the trail in the expand/collapse links (e.g. \{{trail=100000|200000}}).
> Acceptance criteria: the page renders with and without \{{glAccountId}}, and the trail only contains real tree nodes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)