Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335515

Summary: NPE when reordering children in TreeViewer under Mac Carbon
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Alexander Nyßen CLA 2011-01-26 17:00:50 EST
Using the logic example, one can reproduce that reordering children sometimes lead to the following NPE: 

ENTRY org.eclipse.ui 4 0 2011-01-26 22:58:21.845
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
	at org.eclipse.gef.ui.parts.TreeViewer$1.widgetSelected(TreeViewer.java:193)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1669)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1693)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1678)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1421)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3653)
	at org.eclipse.swt.widgets.Control.sendTrackEvents(Control.java:3067)
	at org.eclipse.swt.widgets.Control.kEventControlTrack(Control.java:2146)
	at org.eclipse.swt.widgets.Widget.controlProc(Widget.java:381)
	at org.eclipse.swt.widgets.Display.controlProc(Display.java:915)
	at org.eclipse.swt.internal.carbon.OS.CallNextEventHandler(Native Method)
	at org.eclipse.swt.widgets.Tree.kEventMouseDown(Tree.java:2674)
	at org.eclipse.swt.widgets.Widget.mouseProc(Widget.java:1387)
	at org.eclipse.swt.widgets.Display.mouseProc(Display.java:3096)
	at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3219)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Comment 1 Alexander Nyßen CLA 2011-01-26 17:01:53 EST
This problem was initially reported as part of bug #332808.
Comment 2 Alexander Nyßen CLA 2011-01-26 17:04:10 EST
(In reply to comment #1)
> This problem was initially reported as part of bug #332808.

Used eclipse M20100909-0800 (macosx, x86, carbon) with java 1.5.0_07 on Mac OS 10.4.11 to reproduce the issue.
Comment 3 Alexander Nyßen CLA 2014-08-10 16:49:38 EDT
As Carbon is no longer supported, resolving as NOT_ECLIPSE.