Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 8104 - Null Pointer Exception popping up a menu on an empty view
Summary: Null Pointer Exception popping up a menu on an empty view
Status: CLOSED DUPLICATE of bug 8021
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin Haaland CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-23 09:26 EST by Tod Creasey CLA
Modified: 2002-01-24 10:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2002-01-23 09:26:44 EST
If you use Ctrl-F10 to try and popup a menu on an empty view you get a Null 
Pointer Exception

STEPS
1) Select a Project
2) Open the Outline View (it will be empty)
3) Hit Ctrl-F10

Exception

Log: Wed Jan 23 09:27:09 EST 2002
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Wed Jan 23 09:27:09 EST 2002
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
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	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 java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)
Comment 1 Nick Edgar CLA 2002-01-23 15:42:34 EST

*** This bug has been marked as a duplicate of 8021 ***
Comment 2 Tod Creasey CLA 2002-01-24 10:13:41 EST
Fixed in build >20020123