Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345444

Summary: Editor without ActionBarContributor ends up in a null pointer exception
Product: [Modeling] EEF Reporter: Romain Guider <romain.guider>
Component: GeneralAssignee: EEF Inbox <emft.eef-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: stephane.begaudeau
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Romain Guider CLA 2011-05-11 11:20:47 EDT
Build Identifier: 20100917-0705

If an EEF Editor is contributed without an ActionBarContributor being used, a Null Pointer Exception is thrown with the following stack trace : 

java.lang.NullPointerException
	at org.eclipse.emf.eef.runtime.ui.editor.InteractiveEEFEditor.getActionBars(InteractiveEEFEditor.java:1140)
	at org.eclipse.emf.eef.runtime.ui.editor.InteractiveEEFEditor.setStatusLineManager(InteractiveEEFEditor.java:1083)
	at org.eclipse.emf.eef.runtime.ui.editor.InteractiveEEFEditor.setSelection(InteractiveEEFEditor.java:1076)
	at org.eclipse.emf.eef.runtime.ui.editor.InteractiveEEFEditor.handleActivate(InteractiveEEFEditor.java:280)
	at org.eclipse.emf.eef.runtime.ui.editor.InteractiveEEFEditor$1.partActivated(InteractiveEEFEditor.java:175)
	at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
...

The contributorClass field in the Editor extension isn't mandatory however, the code of getActionBars seems to assume it is.

Reproducible: Always

Steps to Reproduce:
1. Generate a one-click EEF editor
2. erase the contributorClass field in the Editor extension in the plugin.xml
3. Launch an eclipse and open an editor.
Comment 1 Stephane Begaudeau CLA 2016-05-30 09:58:16 EDT
The Eclipse EEF team has worked over the past few months on a brand new runtime using a reflective approach which can be used more easily with Eclipse Sirius. Since we do not plan to continue to work on the old runtime and its code generation approach, I will close this issue for now.

If you want to contribute, you can reopen this issue and submit a contribution to the project thanks to our Gerrit: https://git.eclipse.org/r/#/admin/projects/eef/org.eclipse.eef