Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351111 - [XTend] Exception causes right-click to fail
Summary: [XTend] Exception causes right-click to fail
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: 1.0.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal with 3 votes (vote)
Target Milestone: SR1   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 14:58 EDT by Miles Parker CLA
Modified: 2017-10-31 10:58 EDT (History)
1 user (show)

See Also:
karsten.thoms: juno+


Attachments
copy from error log (4.14 KB, text/plain)
2011-07-07 16:01 EDT, coffy.sk CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miles Parker CLA 2011-07-04 14:58:33 EDT
When editing an .xpt file, sometimes the right-click fails.

This is the exception I'm seeing:

java.lang.NullPointerException
	at org.eclipse.xtend.ui.debug.ExpressionPluginAdapter.getAllElementsForExtensionAtOffset(ExpressionPluginAdapter.java:149)
	at org.eclipse.xtend.ui.debug.ExpressionPluginAdapter.isToggleBpEnabled(ExpressionPluginAdapter.java:96)
	at org.eclipse.xtend.shared.ui.editor.ToggleBreakpointAction.updateText(ToggleBreakpointAction.java:56)
	at org.eclipse.xtend.shared.ui.editor.BreakpointActionGroup.fillContextMenu(BreakpointActionGroup.java:178)
	at org.eclipse.xtend.shared.ui.editor.AbstractXtendXpandEditor.editorContextMenuAboutToShow(AbstractXtendXpandEditor.java:163)
	at org.eclipse.xpand.ui.editor.XpandEditor.editorContextMenuAboutToShow(XpandEditor.java:51)
	at org.eclipse.ui.texteditor.AbstractTextEditor$13.menuAboutToShow(AbstractTextEditor.java:3030)
	at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor$1.menuAboutToShow(AbstractDecoratedTextEditor.java:503)
	at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:342)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:473)
	at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:469)
	at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:495)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:247)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4125)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1461)
	at org.eclipse.swt.widgets.Menu.menuWillOpen(Menu.java:805)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5522)
	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
	at org.eclipse.swt.internal.cocoa.NSMenu.popUpContextMenu(NSMenu.java:73)
	at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:277)
	at org.eclipse.swt.widgets.Display.runPopups(Display.java:4048)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3603)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Comment 1 coffy.sk CLA 2011-07-07 16:01:23 EDT
Created attachment 199290 [details]
copy from error log

This is description from error log. The error occured when I installed Word Wrap plugin http://ahtik.com/blog/projects/eclipse-word-wrap/
When I uninstalled it the right click works fine.
I use STS 2.7 (Eclipse Indigo), Win 7 64bit
Comment 2 Karsten Thoms CLA 2012-08-14 01:38:49 EDT
Made ExpressionPluginAdapter#getAllElementsForExtensionAtOffset() more NPE safe. The experienced NPE should not appear anymore.
Comment 3 Eclipse Webmaster CLA 2017-10-31 10:46:59 EDT
Requested via bug 522520.

-M.
Comment 4 Eclipse Webmaster CLA 2017-10-31 10:58:13 EDT
Requested via bug 522520.

-M.