Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 8021

Summary: NPE attempting to Show View Menu for a view that does not have this menu
Product: [Eclipse Project] Platform Reporter: Darin Swanson <Darin_Swanson>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P1 CC: andre_weinand, Tod_Creasey
Version: 2.0Keywords: accessibility
Target Milestone: ---   
Hardware: PC   
OS: other   
Whiteboard:

Description Darin Swanson CLA 2002-01-22 12:22:55 EST
Build 20020115++

Give a view focus that does not have a view menu (the Outline view)
Window->Navigation->Show View Menu

4 org.eclipse.ui 0 java.lang.NullPointerException
java.lang.NullPointerException
	at org.eclipse.ui.internal.ViewPane.showViewMenu(ViewPane.java:490)
	at org.eclipse.ui.internal.ShowViewMenuAction.showMenu
(ShowViewMenuAction.java:24)
	at org.eclipse.ui.internal.ShowPartPaneMenuAction.run
(ShowPartPaneMenuAction.java:51)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:452)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:74)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1413)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1205)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:844)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:827)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:878)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:321)
	at SlimLauncher.main(SlimLauncher.java:14)
Comment 1 Nick Edgar CLA 2002-01-23 15:41:23 EST
*** Bug 8101 has been marked as a duplicate of this bug. ***
Comment 2 Nick Edgar CLA 2002-01-23 15:42:35 EST
*** Bug 8104 has been marked as a duplicate of this bug. ***
Comment 3 Tod Creasey CLA 2002-01-24 10:12:48 EST
The Exception has been fixed but the menu entry should be disabled when it 
cannot be executed.
Comment 4 Tod Creasey CLA 2002-01-24 11:04:31 EST
Menu enablment fixed in build > 20020123
Comment 5 Tod Creasey CLA 2005-05-10 14:56:25 EDT
Marking closed