Bug 72495 [Viewers] NullPointerException when updating projects
Build id: 200408170800 I was updating some projects in the synchronize view when the following two error occurred: Error Aug 24, 2004 08:58:56.227 Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime". org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:2691) at org.eclipse.swt.SWT.error(SWT.java:2616) at org.eclipse.swt.SWT.error(SWT.java:2587) at org.eclipse.swt.widgets.Widget.error(Widget.java:381) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:283) at org.eclipse.swt.widgets.TreeItem.setImage(TreeItem.java:710) at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:116) at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:86) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:488) at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:135) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1432) at org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:1415) at org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:1342) at org.eclipse.team.internal.ui.synchronize.SynchronizeModelProvider$LabelUpdateJob.runInUIThread(SynchronizeModelProvider.java:93) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:96) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2760) at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2250) at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method) at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:222) at org.eclipse.swt.widgets.Display.runPopups(Display.java:2809) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2436) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1435) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1406) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:263) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) 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) Error Aug 24, 2004 08:58:56.227 Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime". java.lang.NullPointerException at org.eclipse.jface.viewers.StructuredViewer.dumpMap(StructuredViewer.java:1478) at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.handleException(AbstractTreeViewer.java:95) at org.eclipse.core.internal.runtime.InternalPlatform.handleException(InternalPlatform.java:349) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:617) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:488) at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:135) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1432) at org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:1415) at org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:1342) at org.eclipse.team.internal.ui.synchronize.SynchronizeModelProvider$LabelUpdateJob.runInUIThread(SynchronizeModelProvider.java:93) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:96) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2760) at org.eclipse.swt.widgets.Display.msgFilterProc(Display.java:2250) at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method) at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:222) at org.eclipse.swt.widgets.Display.runPopups(Display.java:2809) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2436) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1435) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1406) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:263) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102) 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)
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
* whether the selection should be restored.
     * 
     * @see #setSelection(ISelection, boolean)
     */
    private boolean restoreSelection;
    /**
     * List of double-click state listeners (element type:
     * <code>IDoubleClickListener</code>).
     * 
     * @see #fireDoubleClick
     */
    private ListenerList doubleClickListeners = new ListenerList(1);
    /**
     * List of open listeners (element type:
     * <code>ISelectionActivateListener</code>).
     * 
     * @see #fireOpen
     */
    private ListenerList openListeners = new ListenerList(1);
    /**
     * List of post selection listeners (element type:
     * <code>ISelectionActivateListener</code>).
     * 
     * @see #firePostSelectionChanged
     */
    private ListenerList postSelectionChangedListeners = new ListenerList(1);
    /**
     * The safe runnable used to update an item.
     */
    class UpdateItemSafeRunnable extends SafeRunnable {