[MAGNOLIA-7255] TemplatingFunctions loses repository exception due to NPE Created: 07/Feb/18  Updated: 07/Feb/18

Status: Open
Project: Magnolia
Component/s: templating
Affects Version/s: 5.6.1
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Ronald Ten Berge Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

A call to TemplatingFunctions#nodeByPath() that fails due to an ACL placed on the requested node path results in a NullPointerException in TemplatingFunctions#handleRepositoryException(), because the current content node in the AggregationState can be null.

NPE's aren't being catched, so the log.debug() call never gets executed an the original Exception is lost.


Generated at Mon Feb 12 04:22:09 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.