Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 507033 - NPE when loading images for entries in "Open With" Package Explorer context menu
Summary: NPE when loading images for entries in "Open With" Package Explorer context menu
Status: CLOSED DUPLICATE of bug 502514
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 08:14 EDT by dvdgsng dvdgsng CLA
Modified: 2016-11-04 11:46 EDT (History)
1 user (show)

See Also:


Attachments
Eclipse Installation Details (1013.88 KB, text/plain)
2016-11-04 08:15 EDT, dvdgsng dvdgsng CLA
no flags Details
Screenshot of the Open With context menu in Package Explorer (33.01 KB, image/png)
2016-11-04 08:16 EDT, dvdgsng dvdgsng CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dvdgsng dvdgsng CLA 2016-11-04 08:14:37 EDT
When accessing the "Open with..." context menu for a file in the Package Explorer the entries don't have labels nor images. It seems that only the visualization in the UI is broken, as the number of entries is correct (and changes properly with the file type) and their actions work properly (i.e. proper editor opens the file).

-- Error Details --
Date: Fri Nov 04 11:51:22 CET 2016
Message: Unhandled event loop exception
Severity: Error
Product: Eclipse 4.6.1.20161007-1200 (org.eclipse.epp.package.jee.product)
Plugin: org.eclipse.ui
Exception Stack Trace:
java.lang.NullPointerException
	at org.eclipse.ui.internal.misc.ProgramImageDescriptor.hashCode(ProgramImageDescriptor.java:74)
	at java.util.HashMap.hash(HashMap.java:338)
	at java.util.HashMap.get(HashMap.java:556)
	at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:77)
	at org.eclipse.jface.resource.ResourceManager.createImage(ResourceManager.java:172)
	at org.eclipse.ui.actions.OpenWithMenu.getImage(OpenWithMenu.java:135)
	at org.eclipse.ui.actions.OpenWithMenu.createMenuItem(OpenWithMenu.java:172)
	at org.eclipse.ui.actions.OpenWithMenu.fill(OpenWithMenu.java:270)
	at org.eclipse.jface.action.MenuManager.doItemFill(MenuManager.java:728)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:810)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:472)
	at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:465)
	at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:497)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:256)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
	at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:5152)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4820)
	at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:359)
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1656)
	at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2199)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5102)
	at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
	at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:262)
	at org.eclipse.swt.widgets.Display.runPopups(Display.java:4269)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3810)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Comment 1 dvdgsng dvdgsng CLA 2016-11-04 08:15:30 EDT
Created attachment 265189 [details]
Eclipse Installation Details
Comment 2 dvdgsng dvdgsng CLA 2016-11-04 08:16:45 EDT
Created attachment 265190 [details]
Screenshot of the Open With context menu in Package Explorer
Comment 3 Andrey Loskutov CLA 2016-11-04 11:46:08 EDT

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