Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 17857 - NPE opening perspective in new window from empty debug window
Summary: NPE opening perspective in new window from empty debug window
Status: RESOLVED DUPLICATE of bug 16956
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-25 08:28 EDT by Jerome Lanneluc CLA
Modified: 2002-05-25 17:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2002-05-25 08:28:58 EDT
Build 20020521

1. Ensure that you open perspective in new window
2. Open Debug perspective
3. Close Debug perspective: the window should be empty
4. Open Java perspective from this window

Observe: The Java persepctive fails to open and you get the following stack 
trace:

!ENTRY org.eclipse.ui 4 0 May 25, 2002 14:32:34.345
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at 
org.eclipse.debug.internal.ui.actions.LaunchWithConfigurationAction.getActivePer
spectiveID(LaunchWithConfigurationAction.java:168)
	at 
org.eclipse.debug.internal.ui.actions.LaunchWithConfigurationAction.getMenu
(LaunchWithConfigurationAction.java:106)
	at org.eclipse.jface.action.ActionContributionItem.fill
(ActionContributionItem.java:227)
	at org.eclipse.jface.action.SubContributionItem.fill
(SubContributionItem.java:45)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:528)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:444)
	at org.eclipse.jface.action.MenuManager.fill(MenuManager.java:187)
	at org.eclipse.jface.action.SubMenuManager.fill(SubMenuManager.java:63)
	at org.eclipse.jface.action.SubContributionItem.fill
(SubContributionItem.java:45)
	at org.eclipse.jface.action.MenuManager.update(MenuManager.java:528)
	at org.eclipse.jface.action.MenuManager.updateAll(MenuManager.java:575)
	at org.eclipse.ui.internal.WorkbenchWindow.updateActionBars
(WorkbenchWindow.java:1342)
	at org.eclipse.ui.internal.WorkbenchWindow.updateActionSets
(WorkbenchWindow.java:1360)
	at org.eclipse.ui.internal.WorkbenchWindow$7.run
(WorkbenchWindow.java:1163)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
	at org.eclipse.ui.internal.WorkbenchWindow.setActivePage
(WorkbenchWindow.java:1137)
	at org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage
(WorkbenchWindow.java:342)
	at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow
(Workbench.java:224)
	at org.eclipse.ui.internal.Workbench.access$8(Workbench.java:217)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:842)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
	at org.eclipse.ui.internal.Workbench.openWorkbenchWindow
(Workbench.java:839)
	at org.eclipse.ui.internal.ChangeToPerspectiveMenu.run
(ChangeToPerspectiveMenu.java:44)
	at org.eclipse.ui.actions.PerspectiveMenu.run(PerspectiveMenu.java:305)
	at org.eclipse.ui.actions.PerspectiveMenu$2.widgetSelected
(PerspectiveMenu.java:93)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:739)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:200)
	at org.eclipse.core.launcher.Main.run(Main.java:643)
	at org.eclipse.core.launcher.Main.main(Main.java:476)
Comment 1 Darin Wright CLA 2002-05-25 17:32:21 EDT

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