Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 6256 - NPE when selecting process in process view
Summary: NPE when selecting process in process view
Status: RESOLVED DUPLICATE of bug 6241
Alias: None
Product: JDT
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: 2001-11-23 10:20 EST by Veronika Irvine CLA
Modified: 2001-11-23 10:31 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 Veronika Irvine CLA 2001-11-23 10:20:03 EST
Eclipse 20011122
Windows 2000

Select a process in the ProcessView of the Debug Perspective.
Get the following NPE:

4 org.eclipse.ui 0 java.lang.NullPointerException
java.lang.NullPointerException
	at 
org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions
(ObjectActionContributorManager.java:90)
	at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions
(PopupMenuExtender.java:47)
	at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow
(PopupMenuExtender.java:68)
	at org.eclipse.jface.action.MenuManager.fireAboutToShow
(MenuManager.java:220)
	at org.eclipse.jface.action.MenuManager.handleAboutToShow
(MenuManager.java:253)
	at org.eclipse.jface.action.MenuManager.access$0(MenuManager.java:250)
	at org.eclipse.jface.action.MenuManager$1.menuShown
(MenuManager.java:280)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:112)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:2893)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled 
Code))
	at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method)
	at org.eclipse.swt.widgets.Menu.setVisible(Menu.java:740)
	at org.eclipse.swt.widgets.Control.WM_CONTEXTMENU(Control.java:2718)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled 
Code))
	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
	at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java(Compiled Code))
	at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java(Compiled Code))
	at org.eclipse.swt.widgets.Control.WM_RBUTTONUP(Control.java:3554)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled 
Code))
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:712)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	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 Darin Wright CLA 2001-11-23 10:24:25 EST

*** This bug has been marked as a duplicate of 6241 ***
Comment 2 Veronika Irvine CLA 2001-11-23 10:31:59 EST
I should mention that I had the following scenario:

I wanted to try running an example outside of eclipse just using the java 
command directly.
To do this I copied the .class files (the whole package structure) from the 
example bin to the bin for org.eclipse.swt.
I was able to run the example outside eclipse.
Then at a later time I tried to run the example from within eclipse.  It was 
this process that I was selecting when I got the NPE.