Details
-
Bug
-
Resolution: Unresolved
-
Neutral
-
None
-
1.3.3
-
None
Description
The following method fails if a sub-mothod returns null!
Class info.magnolia.module.form.paragraphs.models.FormFieldModel
private void validate() {
FormField field = getFormModel().getFormField(getControlName());
valid = field == null || field.isValid();
}
private AbstractFormModel getFormModel() {
RenderingModel model = this.parentModel;
while (model != null) {
if (model instanceof AbstractFormModel)
return (AbstractFormModel) model;
model = model.getParent();
}
return null;
}
if method getFormModel() returns null
the getFormModel().getFormField(getControlName()) method fails
Checklists
Acceptance criteria