Skip to content

Commit 9982450

Browse files
committed
WorkingSetActionProvider: fix "Widget is disposed"
as logged during LabelProviderTest asyncExec can happen when viewer is already disposed
1 parent 7d29a59 commit 9982450

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/actions/WorkingSetActionProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@ public void restoreState(final IMemento aMemento) {
329329

330330
// Need to run this async to avoid being reentered when processing a selection change
331331
viewer.getControl().getShell().getDisplay().asyncExec(() -> {
332+
if (viewer.getControl().isDisposed()) {
333+
return;
334+
}
332335
boolean showWorkingSets = true;
333336
if (aMemento != null) {
334337
Integer showWorkingSetsInt = aMemento

0 commit comments

Comments
 (0)