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 11:08:00 UTC
[jira] [Created] (OFBIZ-13651) Navigate Accounts (GlAccountNavigate) fails with a NullPointerException when no glAccountId is given
Mridul Pathak created OFBIZ-13651:
-------------------------------------
Summary: 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: 24.09.07, Upcoming Branch
Reporter: Mridul Pathak
Assignee: Mridul Pathak
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)