Community
Participate
Working Groups
If you open an Application.e4xmi within the SimpleIDE example application a NPE is thrown. Caused by: java.lang.NullPointerException at org.eclipse.e4.tools.emf.ui.internal.common.ModelEditor.setFocus(ModelEditor.java:660) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:47) ... 29 more The reason seem to be the clipboardService which is defined @Inject @Optional private IClipboardService clipboardService; but there is no null check in the setFocus method.
fixed in head