[MGNLUI-4444] LinkFieldFactory NPE when removing an asset from an app Created: 14/May/18  Updated: 22/Jul/19  Resolved: 07/Jun/18

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.6.5
Fix Version/s: 5.6.6, 5.7

Type: Bug Priority: Neutral
Reporter: Tom Wespi Assignee: Robert Šiška
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

https://demoauthor.magnolia-cms.com/


Issue Links:
Problem/Incident
is caused by MGNLUI-4368 readOnly property is not working for ... Closed
causality
duplicate
is duplicated by MGNLDAM-755 Error when removing existing path to ... Closed
relation
is related to CONTEDIT-189 ExpandingLinkFieldFactory NPE when re... 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:
Sprint: Kromeriz 149, Kromeriz 150
Story Points: 3

 Description   

Reproduce:

Change in tours-app the field image (/modules/tours/apps/tours/subApps/detail/editor/form/tabs/tour/fields/image) to required > false and try to remove an image from an entry in the app.

Invocation of method valueChange in info.magnolia.ui.form.field.factory.LinkFieldFactory$$Lambda$364/548250429 failed.

MethodException: Invocation of method valueChange in info.magnolia.ui.form.field.factory.LinkFieldFactory$$Lambda$364/548250429 failed. caused by NullPointerException



 Comments   
Comment by Arne Diekmann [ 18/May/18 ]

This is bugging us as well - should be an easy fix in info.magnolia.ui.form.field.factory.LinkFieldFactory:123 which is missing a null check.

An easy workaround seems to be to enter a space into the field instead of leaving it completely blank.

Comment by Arne Diekmann [ 21/Jan/19 ]

FYI: We encountered this bug in a 5.5.12 installation as well. So in case a maintenance release is planned for the 5.5 line maybe the Bugfix can be "backported".

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