Community
Participate
Working Groups
Steps to reproduce : 1. I have an EmfFormEditor with two pages. In a first page, I defined a text widget and bind it with a property of my EMF model. The binding is register on a SWT.FocusOut event. 2. I modify the value in the text field 3. I change the active page, this will launch the validation process, but since I am also changing the active page, results in a NPE Here is the stackTrace : Caused by: java.lang.NullPointerException at org.eclipse.pde.emfforms.internal.validation.ValidatingEContentAdapter.validate(ValidatingEContentAdapter.java:107) at org.eclipse.pde.emfforms.internal.validation.ValidatingEContentAdapter.notifyChanged(ValidatingEContentAdapter.java:97) at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:280) at com.anwrt.platform.model.impl.AssetModelTypeImpl.setCustomerPath(AssetModelTypeImpl.java:402) at com.anwrt.platform.model.impl.AssetModelTypeImpl.eSet(AssetModelTypeImpl.java:574) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1073) at org.eclipse.emf.edit.command.SetCommand.doExecute(SetCommand.java:721) at org.eclipse.emf.edit.command.AbstractOverrideableCommand.execute(AbstractOverrideableCommand.java:131) at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:84) ... 83 more
Created attachment 150713 [details] Fix the NPE - Provide additionnal check
Sounds fair, thanks for the patch Jacques :)
FIXED in HEAD >20091031.
Created attachment 150998 [details] mylyn/context/zip