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

Bug 357622

Summary: Asynchronous runnable seems to try to set an input to a disposed viewer
Product: z_Archived Reporter: Remy Suen <remy.suen>
Component: EMF-FacetAssignee: Project Inbox <emft.facet-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P5 CC: gdupe, Lars.Vogel, sumitsingh_1234
Version: unspecifiedFlags: gdupe: indigo+
gdupe: juno+
gdupe: kepler+
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Remy Suen CLA 2011-09-14 08:13:57 EDT
I had a view up (don't really remember which one) and closed it right after startup. Moments later I got an error dialog for this problem.

Caused by: java.lang.IllegalStateException: Need an underlying widget to be able to set the input.(Has the widget been disposed?)
	at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1681)
	at org.eclipse.emf.facet.common.ui.internal.views.AbstractTreeView$3.run(AbstractTreeView.java:137)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	... 23 more
Comment 1 Gregoire Dupe CLA 2011-09-29 13:54:45 EDT
Hello,

Which view causes this problem ?

Regards,
Grégoire
Comment 2 Remy Suen CLA 2011-09-29 13:59:44 EDT
(In reply to comment #1)
> Which view causes this problem ?

Sorry, I don't remember.

Asynchronous messages can always be run after a widget has been disposed so I suggest some checks get added.
Comment 3 Lars Vogel CLA 2019-12-11 04:15:25 EST
No reproducer