Bug 95828 - [PresentationAPI] Null argument in PartStack.presentationSelectionChanged
Summary: [PresentationAPI] Null argument in PartStack.presentationSelectionChanged
Status: CLOSED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-05-18 15:07 EDT by Douglas Pollock 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 Douglas Pollock CLA 2005-05-18 15:07:25 EDT
!SESSION 2005-05-16 13:25:53.705 -----------------------------------------------
eclipse.buildId=I20050513-1415
java.version=1.5.0-beta2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86 -data
/home/dpollock/Source/Eclipse/Workspaces/3.1

!ENTRY org.eclipse.ui 4 4 2005-05-16 13:27:45.966
3.1 M7, GTK+ 2.6.4, KDE 3.3.2, X.org 6.8.2, Linux 2.6.11

I found this in my log, and I'm not sure how it got there.


!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-05-16 13:27:45.969
!MESSAGE null argument;
!STACK 0
org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
	at org.eclipse.jface.util.Assert.isNotNull(Assert.java:149)
	at org.eclipse.jface.util.Assert.isNotNull(Assert.java:125)
	at
org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:739)
	at org.eclipse.ui.internal.PartStack.access$0(PartStack.java:731)
	at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:115)
	at
org.eclipse.ui.internal.presentations.BasicPartList.gotoSelectedElement(BasicPartList.java:242)
	at
org.eclipse.ui.internal.presentations.AbstractTableInformationControl$6.keyPressed(AbstractTableInformationControl.java:370)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:121)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1036)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1048)
	at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:612)
	at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:1961)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1348)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3331)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:4740)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:969)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1139)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2473)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1601)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1565)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:230)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)
	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:582)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:330)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Josh Knauer CLA 2005-09-06 17:34:48 EDT
To reproduce this:

1) Open enough editors so that the tabs for them all don't fit in the window
(i.e the ">>N" appears on the right of the editor tabs)
2) Select the ">>N" button and type in some random characters
3) Press enter

Assuming the random chars that you typed aren't the name of an open editor you
will get this exception.
Comment 2 Joshua Salit CLA 2005-10-27 09:18:38 EDT
I also hit this on Windows XP, with 3.1.1, doing the same thing Josh K.
described in comment #1 - 

!SESSION 2005-10-24 13:26:00.332 -----------------------------------------------
eclipse.buildId=M20050929-0840
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -showlocation
Command-line arguments:  -os win32 -ws win32 -arch x86 -showlocation -data c:\dev\

!ENTRY org.eclipse.ui 4 0 2005-10-27 09:13:45.112
!MESSAGE null argument;
!STACK 0
org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
	at org.eclipse.jface.util.Assert.isNotNull(Assert.java:149)
	at org.eclipse.jface.util.Assert.isNotNull(Assert.java:125)
	at
org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:779)
	at org.eclipse.ui.internal.PartStack.access$0(PartStack.java:771)
	at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:119)
	at
org.eclipse.ui.internal.presentations.BasicPartList.gotoSelectedElement(BasicPartList.java:242)
	at
org.eclipse.ui.internal.presentations.AbstractTableInformationControl$6.keyPressed(AbstractTableInformationControl.java:370)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:122)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:880)
	at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1154)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:876)
	at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1190)
	at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3135)
	at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:1782)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3038)
	at org.eclipse.swt.widgets.Text.windowProc(Text.java:1777)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3706)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1656)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2711)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
	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:585)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
	at org.eclipse.core.launcher.Main.run(Main.java:973)
	at org.eclipse.core.launcher.Main.main(Main.java:948)
Comment 3 Paul Webster CLA 2006-09-28 15:14:51 EDT
Is this still a problem in 3.3?

PW
Comment 4 Joshua Salit CLA 2006-12-12 10:47:50 EST
I can no longer reproduce under 3.3M3..
Comment 5 Paul Webster CLA 2006-12-12 12:07:27 EST
OK.  If it occurs again please  open a new bug.

PW
Comment 6 Denis Roy CLA 2009-08-30 02:09:51 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.