Project: SWT
Bug 137524 NPE in AsynchronousViewer
Reported: 2006-04-19 12:03:31 | Status: resolved fixed

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:3142) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2912) 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:376) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) 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: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:743) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.handleEvent(AsynchronousViewer.java:1041) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:340) at org.eclipse.swt.widgets.TreeItem.getImage(TreeItem.java:616) at org.eclipse.swt.widgets.TreeItem.calculateWidth(TreeItem.java:217) at org.eclipse.swt.widgets.Tree.calculateWidth(Tree.java:297) at org.eclipse.swt.widgets.Tree.calculateWidth(Tree.java:299) at org.eclipse.swt.widgets.Tree.setScrollWidth(Tree.java:2883) at org.eclipse.swt.widgets.Tree.itemNotificationProc(Tree.java:2193) at org.eclipse.swt.widgets.Display.itemNotificationProc(Display.java:2230) at org.eclipse.swt.internal.carbon.OS.RemoveDataBrowserItems(Native Method) at org.eclipse.swt.widgets.Tree.destroyItem(Tree.java:885) at org.eclipse.swt.widgets.TreeItem.destroyWidget(TreeItem.java:315) at org.eclipse.swt.widgets.Widget.release(Widget.java:1372) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:639) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.nodeDisposed(AsynchronousViewer.java:850) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel$3.run(AsynchronousTreeModel.java:145) at org.eclipse.debug.internal.ui.viewers.AsynchronousViewer.preservingSelection(AsynchronousViewer.java:734) at org.eclipse.debug.internal.ui.viewers.AsynchronousModel.preservingSelection(AsynchronousModel.java:415) at org.eclipse.debug.internal.ui.viewers.AsynchronousTreeModel.remove(AsynchronousTreeModel.java:143) at org.eclipse.debug.internal.ui.viewers.RemoveRequestMonitor.performUpdate(RemoveRequestMonitor.java:39) at org.eclipse.debug.internal.ui.viewers.AsynchronousRequestMonitor$1.runInUIThread(AsynchronousRequestMonitor.java:51) 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) ... 20 more

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