[CONTEDIT-220] BlockPicker fails with NPE when contains decorated block Created: 16/Dec/19  Updated: 04/Apr/23  Resolved: 04/Apr/23

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Critical
Reporter: Milan Divilek Assignee: Unassigned
Resolution: Obsolete 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)
Date of First Response:
Team: AuthorX

 Description   

When block picker contains decorated block than NPE occures.

Reproduce:
1. Add decoration file /travel-demo-stories-app/decorations/content-editor/blocks/image.yaml in resource app

fields:
  myField:
    class: info.magnolia.ui.form.field.definition.TextFieldDefinition

2. Open Stories app and edit /stories-demo/lost-and-found-in-swiss-alps
3. Click + symbol for one of the blocks and select others option
4. NPE occurs

Caused by: java.lang.NullPointerException
	at com.vaadin.v7.data.util.IndexedContainer$IndexedContainerProperty.setValue(IndexedContainer.java:857) ~[vaadin-compatibility-server-8.8.5.jar:8.8.5]
	at info.magnolia.editor.blockpicker.BlockPickerFieldFactory.getBlockDefinitionBeanItemContainer(BlockPickerFieldFactory.java:64) ~[magnolia-content-editor-1.3.3-SNAPSHOT.jar:?]
	at info.magnolia.editor.blockpicker.BlockPickerFieldFactory.createFieldComponent(BlockPickerFieldFactory.java:52) ~[magnolia-content-editor-1.3.3-SNAPSHOT.jar:?]
	at info.magnolia.ui.form.field.factory.AbstractFieldFactory.createField(AbstractFieldFactory.java:145) ~[magnolia-ui-framework-compatibility-6.2-SNAPSHOT.jar:?]
	at info.magnolia.ui.dialog.choosedialog.ChooseDialogPresenterImpl.start(ChooseDialogPresenterImpl.java:122) ~[magnolia-ui-framework-compatibility-6.2-SNAPSHOT.jar:?]


 Comments   
Comment by Laura Delnevo [ 04/Apr/23 ]

Hello,

This ticket is now marked as closed due to one of the following reasons:

  • A long period of inactivity
  • Uses an old or Beta version of an application, module, or framework that we no longer support
  • The issue is no longer reproducible or has been fixed in later versions

If you are still facing a problem or consider this issue still relevant, please feel free to re-open the ticket and we will reach out to you.

Thank you,
The Magnolia Team

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