[MGNLDIFF-72] NPE in the activation dialog Created: 13/Mar/14  Updated: 18/Mar/14  Resolved: 14/Mar/14

Status: Closed
Project: Magnolia Diff Module
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 1.2.2

Type: Bug Priority: Neutral
Reporter: Federico Grilli Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: quickwin, support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
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   

The issue has been introduced with MGNLDIFF-33 and lies in the following code

public boolean hasThisVersion() throws RepositoryException {
   return VersionUtil.getVersion(getOriginalContent().getJCRNode(),   getVersionLabel()) != null;
 }

As getOriginalContent() can return null, a check for null should be performed before calling getJCRNode().


Generated at Mon Feb 12 05:21:06 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.