Project: Eclipse_Platform_UI
Bug 306898 [Compatibility] NPE thrown when bringing up context menu on the MANIFEST.MF editor's form header
Reported: 2010-03-23 21:42:05 | Status: resolved fixed

java.lang.NullPointerException at org.eclipse.pde.internal.ui.editor.plugin.ManifestEditorContributor.contextMenuAboutToShow(ManifestEditorContributor.java:51) at org.eclipse.pde.internal.ui.editor.PDEFormEditorContributor.contextMenuAboutToShow(PDEFormEditorContributor.java:174) at org.eclipse.pde.internal.ui.editor.PDEFormEditor.contextMenuAboutToShow(PDEFormEditor.java:293) at org.eclipse.pde.internal.ui.editor.PDEFormEditor$1.menuAboutToShow(PDEFormEditor.java:237) at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:338) at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:469) at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:465) at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:491) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:235) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1050) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1074) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055) at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:4464) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4167) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2032) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4830) at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method) at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:254) at org.eclipse.swt.widgets.Display.runPopups(Display.java:4078) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3622) at org.eclipse.e4.ui.workbench.swt.internal.PartRenderingEngine$5.run(PartRenderingEngine.java:554)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java