Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Neutral
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3.0
-
Labels:None
Description
The sampleShop has a price category called "standard-price". Now when you create a second shop and in its configuration you add again a price category called "standard-price" you will not be able to create a third shop:
Caused by: java.lang.NullPointerException at info.magnolia.ui.form.field.factory.SelectFieldFactory.buildOptions(SelectFieldFactory.java:151) at info.magnolia.ui.form.field.factory.SelectFieldFactory.createFieldComponent(SelectFieldFactory.java:98) at info.magnolia.ui.form.field.factory.SelectFieldFactory.createFieldComponent(SelectFieldFactory.java:73) at info.magnolia.ui.form.field.factory.AbstractFieldFactory.createField(AbstractFieldFactory.java:108) at info.magnolia.ui.dialog.formdialog.FormBuilder.buildReducedForm(FormBuilder.java:214)
The reason for this is that IndexedContainer.addItem() returns null when the new "standard-price" is added.
Attachments
Issue Links
- mentioned in
-
Page Loading...