Hi,

Does any body know why I'm getting the following exception when saving a modified entity by using its entity page

Caused by: java.lang.NullPointerException
at org.apache.isis.core.metamodel.specloader.specimpl.OneToOneAssociationImpl.clearValue(OneToOneAssociationImpl.java:199) at org.apache.isis.core.metamodel.specloader.specimpl.OneToOneAssociationImpl.set(OneToOneAssociationImpl.java:163) at org.apache.isis.viewer.wicket.model.models.EntityModel.apply(EntityModel.java:594) at org.apache.isis.viewer.wicket.ui.components.entity.properties.EntityPropertiesForm.applyFormChangesElse(EntityPropertiesForm.java:505) at org.apache.isis.viewer.wicket.ui.components.entity.properties.EntityPropertiesForm.access$500(EntityPropertiesForm.java:75) at org.apache.isis.viewer.wicket.ui.components.entity.properties.EntityPropertiesForm$AjaxButtonForValidate.onSubmit(EntityPropertiesForm.java:333) at org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:108) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:179) at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1266)
    at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
at org.apache.isis.viewer.wicket.ui.panels.FormAbstract.process(FormAbstract.java:110) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770) at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:156) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:123) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:633)

the objectAdapter param for OneToOneAssociationImpl.set(OneToOneAssociationImpl.java:163) is the editted entity and the new value is null. The underlying facet method is a getter method for a String property of the entity that indeed is empty.

Thanks,
Erik

Reply via email to