[MGNLSTK-1378] Handle null in Resource.getLink() Created: 01/Apr/14  Updated: 02/Jul/18  Resolved: 02/Jul/18

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 2.7.3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Mike Herzog Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File Resource.patch    
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Date of First Response:

 Description   

When the link is null, a NullPointerException is thrown.
One has no way of preventing it, since getLink() should be the way to find out.



 Comments   
Comment by Mike Herzog [ 01/Apr/14 ]

Patch attached, that makes getLink() return null, when the link is null.

Comment by Jan Haderka [ 02/Jul/18 ]

STK have been deprecated in September 2017. As part of this project nearing end-of-life, we are not planning to fix any of the existing issues except for the critical security issues. For more details, please consult documentation.

Generated at Mon Feb 12 07:36:00 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.