[MGNLDIFF-26] NPE occurs if no version exists Created: 11/Feb/13  Updated: 06/Mar/13  Resolved: 04/Mar/13

Status: Closed
Project: Magnolia Diff Module
Component/s: None
Affects Version/s: 1.1.2, 1.1.3
Fix Version/s: 1.1.4

Type: Bug Priority: Neutral
Reporter: Frank Sommer Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File diff-bug.png    
Issue Links:
relation
is related to MGNLDIFF-28 Show in diffLink that the versioning ... Closed
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
Date of First Response:

 Description   

If you disable the versioning in website command chain, the workitem view in the inbox will show you a freemarker exception on rendering the diff version link.

The methods in info.magnolia.module.diff.util.VersionUtil should be more fault tolerant with the handling of versions.



 Comments   
Comment by Roman Kovařík [ 04/Mar/13 ]

Return null from VersionUtil.getVersion() when the version doesn't exist.

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