Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355161 - [Compatibility] NPE closing part with context menu open
Summary: [Compatibility] NPE closing part with context menu open
Status: CLOSED DUPLICATE of bug 364838
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 15:58 EDT by John Arthorne CLA
Modified: 2012-01-27 15:43 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-08-18 15:58:19 EDT
Build: I20110727-1100

1) Open Navigator view
2) Right click to open context menu
3) Attempt to close the view by clicking the X button in the view toolbar

-> NPE

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
	at org.eclipse.swt.SWT.error(SWT.java:4283)
	at org.eclipse.swt.SWT.error(SWT.java:4198)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:969)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:885)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:89)
	at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:539)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:519)
	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)
Caused by: java.lang.NullPointerException
	at org.eclipse.ui.internal.PopupMenuExtender.cleanUpContributionCache(PopupMenuExtender.java:477)
	at org.eclipse.ui.internal.PopupMenuExtender.runCleanUp(PopupMenuExtender.java:449)
	at org.eclipse.ui.internal.PopupMenuExtender.access$1(PopupMenuExtender.java:443)
	at org.eclipse.ui.internal.PopupMenuExtender$2.run(PopupMenuExtender.java:436)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	... 23 more
Comment 1 John Arthorne CLA 2011-08-18 16:00:00 EDT
(same error occurs closing an editor with context menu open)
Comment 2 Remy Suen CLA 2011-08-19 10:33:07 EDT
Reproduced on my end.
Comment 3 Remy Suen CLA 2012-01-27 15:43:43 EST
Paul fixed this when he pushed f097b46cc771f29fc8abbb29b233745c6e9532ea for bug 364838.
http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f097b46cc771f29fc8abbb29b233745c6e9532ea

*** This bug has been marked as a duplicate of bug 364838 ***