[MGNLUI-2304] MultiValueSubChildrenNodeTransformer throws error Created: 22/Oct/13  Updated: 14/Nov/13  Resolved: 06/Nov/13

Status: Closed
Project: Magnolia UI
Component/s: forms
Affects Version/s: 5.1
Fix Version/s: 5.2

Type: Bug Priority: Major
Reporter: Antti Hietala Assignee: Eric Hechinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File config.modules.form.dialogs.form.form.tabs.tabTest.xml    
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
Sprint: 5.2-rc1

 Description   
2013-10-22 14:27:59,378 WARN  ransformer.multi.MultiValueChildrenNodeTransformer: Not able to create a Child Item for 53049b1f-fbdb-4463-b948-2ec2fa56078c 
java.lang.NullPointerException
	at info.magnolia.ui.form.field.transformer.multi.MultiValueSubChildrenNodeTransformer.createChildItemName(MultiValueSubChildrenNodeTransformer.java:93)
	at info.magnolia.ui.form.field.transformer.multi.MultiValueChildrenNodeTransformer.setNewChildItem(MultiValueChildrenNodeTransformer.java:213)
	at info.magnolia.ui.form.field.transformer.multi.MultiValueChildrenNodeTransformer.writeToItem(MultiValueChildrenNodeTransformer.java:133)
	at info.magnolia.ui.form.field.transformer.multi.MultiValueChildrenNodeTransformer.writeToItem(MultiValueChildrenNodeTransformer.java:78)
	at info.magnolia.ui.form.field.transformer.TransformedProperty.setValue(TransformedProperty.java:67)
	at info.magnolia.ui.form.field.AbstractCustomMultiField$1.valueChange(AbstractCustomMultiField.java:129)


 Comments   
Comment by Antti Hietala [ 06/Nov/13 ]

To reproduce on Magnolia 5.1.1:

  1. Import the attached XML to config:/modules/form/dialogs/form/form/tabs
  2. Create a new Form page at the site root /demo-project/myForm
  3. Open the page and edit the form component.
  4. On the first tab, add three empty shopping list items.
  5. Type some text into the first text box. Watch the terminal. The error is thrown before you save the values.

If you edit an existing form page such as /demo-project/service/contact the error is not thrown.

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