diff options
author | Sarika Sinha | 2022-03-07 07:03:52 +0000 |
---|---|---|
committer | Sarika Sinha | 2022-03-08 03:15:24 +0000 |
commit | 312bc3b25fc693a125e4f5f1f6d50958dfbfb34e (patch) | |
tree | 3b79e4a47c2a75864439b0f7987d5f67e55238b0 | |
parent | 814facbca1ac1cb55ed3d5ed0f6e0ec7d46d53ab (diff) | |
download | eclipse.platform.debug-312bc3b25fc693a125e4f5f1f6d50958dfbfb34e.tar.gz eclipse.platform.debug-312bc3b25fc693a125e4f5f1f6d50958dfbfb34e.tar.xz eclipse.platform.debug-312bc3b25fc693a125e4f5f1f6d50958dfbfb34e.zip |
Bug 579117 - LaunchViewImpl.reset() Widget is disposed
Change-Id: Ib66b744a4e9382c45c443374daaaeb6cf4cae714
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/191524
Tested-by: Sarika Sinha <sarika.sinha@in.ibm.com>
Reviewed-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r-- | org.eclipse.debug.ui.launchview/src/org/eclipse/debug/ui/launchview/internal/view/LaunchViewImpl.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui.launchview/src/org/eclipse/debug/ui/launchview/internal/view/LaunchViewImpl.java b/org.eclipse.debug.ui.launchview/src/org/eclipse/debug/ui/launchview/internal/view/LaunchViewImpl.java index 850c10b28..e50e3d356 100644 --- a/org.eclipse.debug.ui.launchview/src/org/eclipse/debug/ui/launchview/internal/view/LaunchViewImpl.java +++ b/org.eclipse.debug.ui.launchview/src/org/eclipse/debug/ui/launchview/internal/view/LaunchViewImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2017, 2019 SSI Schaefer IT Solutions GmbH and others. + * Copyright (c) 2017, 2022 SSI Schaefer IT Solutions GmbH and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -10,6 +10,7 @@ * * Contributors: * SSI Schaefer IT Solutions GmbH + * IBM Corporation - bug fixes *******************************************************************************/ package org.eclipse.debug.ui.launchview.internal.view; @@ -266,6 +267,9 @@ public class LaunchViewImpl implements Supplier<Set<ILaunchObject>> { } private synchronized void reset() { + if (tree == null || tree.isDisposed()) { + return; + } tree.getDisplay().syncExec(() -> { tree.getViewer().getTree().setRedraw(false); try { |