Bug 72009 - [Workbench] NPE: AbstractSelectionService
Summary: [Workbench] NPE: AbstractSelectionService
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-08-16 06:09 EDT by Channing Walton CLA
Modified: 2009-08-30 02:09 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 Channing Walton CLA 2004-08-16 06:09:06 EDT
Eclipse Linux GTK M20040811
Linux fedora-core-1

I got the exception below when I started eclipse and did a clean on the
workspace (don't know if that is related but its when the exception seem to occur.)

Chang

java.lang.NullPointerException
	at
org.eclipse.ui.internal.AbstractSelectionService.partActivated(AbstractSelectionService.java:246)
	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:1372)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2694)
	at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2371)
	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:304)
	at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:284)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:954)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:978)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:959)
	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:937)
	at org.eclipse.swt.widgets.Control.gtk_button_press_event(Control.java:1698)
	at org.eclipse.swt.widgets.Composite.gtk_button_press_event(Composite.java:394)
	at org.eclipse.swt.widgets.Tree.gtk_button_press_event(Tree.java:730)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1195)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3098)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(Native Method)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:879)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_iteration(Native Method)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2297)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
	at org.eclipse.core.launcher.Main.run(Main.java:644)
	at org.eclipse.core.launcher.Main.main(Main.java:628)
Comment 1 Tom Hofmann CLA 2004-08-16 06:56:29 EDT
don't see text anywhere, moving to UI.
Comment 2 Lorenz Maierhofer CLA 2004-10-09 18:04:46 EDT
Eclipse 3.01, Win32

Had exactly the same NPE and could trace it back, but did not completely
understand what's going on.

Some details that are propably are not enougth for a fix:

All starts in 
AbstractSelectionService.partActivated(AbstractSelectionService.java:242)
where the selection is fired to listeners. 
One of my listeners performed a focus change (by calling Text.setEnabled(false))
which triggered some other listeners (can't say when it is really failing) that
in the end set the field in AbstractSelectionServide, activeProvider, to null.
The problem is that AbstractSelectionService assumes that this can not happen -
but it can happen....
Comment 3 Tod Creasey CLA 2006-04-14 22:05:56 EDT
is this still an issue in 3.2?
Comment 4 Channing Walton CLA 2006-04-15 05:31:32 EDT
I haven't seen this exception recently so I guess its been fixed.
Comment 5 Denis Roy CLA 2009-08-30 02:09:16 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.