Project: SWT
Bug 138062 NPE in getData
Reported: 2006-04-21 17:24:22 | Status: resolved fixed

N20060421-0010 on XP, I get this error from SWT (I think a similar bug was fixed on MacOS yesterday). org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:3374) at org.eclipse.swt.SWT.error(SWT.java:3297) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3323) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2969) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 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.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: java.lang.NullPointerException at org.eclipse.swt.widgets.Widget.getData(Widget.java:518) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.restoreLabels(AsynchronousTreeViewer.java:1134) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.handleEvent(AsynchronousViewer.java:976) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:949) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:934) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:1342) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:1330) at org.eclipse.swt.widgets.TreeItem.getItems(TreeItem.java:756) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.getItems(AsynchronousTreeViewer.java:788) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.doAttemptSelectionToWidget(AsynchronousTreeViewer.java:970) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.restoreSelection(AsynchronousViewer.java:726) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.preservingSelection(AsynchronousViewer.java:701) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.handleEvent(AsynchronousViewer.java:992) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:949) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:934) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:1342) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:1330) at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:5979) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:3794) at org.eclipse.swt.widgets.Composite.WM_NOTIFY(Composite.java:1166) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3298) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1841) at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1256) at org.eclipse.swt.widgets.Tree.WM_PAINT(Tree.java:5792) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3299) at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:4686) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1841) at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1256) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3334) at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:4686) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4023) at org.eclipse.swt.internal.win32.OS.SendMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.SendMessage(OS.java:2513) at org.eclipse.swt.widgets.Tree.destroyItem(Tree.java:2189) at org.eclipse.swt.widgets.TreeItem.destroyWidget(TreeItem.java:319) at org.eclipse.swt.widgets.Widget.release(Widget.java:750) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:412) at org.eclipse.swt.widgets.Tree.setItemCount(Tree.java:3376) at org.eclipse.swt.widgets.TreeItem.setItemCount(TreeItem.java:1519) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer.setItemCount(AsynchronousTreeViewer.java:764) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.nodeChildrenChanged(AsynchronousViewer.java:918) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel$3.run(AsynchronousTreeModel.java:141) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.preservingSelection(AsynchronousViewer.java:693) at org.eclipse.debug.internal.ui.viewers.AsynchronousModel.preservingSelection(AsynchronousModel.java:415) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel.remove(AsynchronousTreeModel.java:139) at org.eclipse.debug.internal.ui.viewers.RemoveRequestMonitor.performUpdate(RemoveRequestMonitor.java:39) at org.eclipse.debug.internal.ui.viewers.AsynchronousRequestMonitor$1.runInUIThread(AsynchronousRequestMonitor.java:58) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java