Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345444 - Editor without ActionBarContributor ends up in a null pointer exception
Summary: Editor without ActionBarContributor ends up in a null pointer exception
Status: CLOSED WONTFIX
Alias: None
Product: EEF
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor
Target Milestone: ---   Edit
Assignee: EEF Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 11:20 EDT by Romain Guider CLA
Modified: 2016-05-30 09:58 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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