Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2001-08-17 12:21:50 +0000
committerDarin Wright2001-08-17 12:21:50 +0000
commit28920a102e89957f2327b435077c468520aabba9 (patch)
treeea52b16f01096eb66b02363ea0993c1090d4fe71
parentbaedb6cee42e52f4b15b678a230a05b95377b5aa (diff)
downloadeclipse.platform.debug-28920a102e89957f2327b435077c468520aabba9.tar.gz
eclipse.platform.debug-28920a102e89957f2327b435077c468520aabba9.tar.xz
eclipse.platform.debug-28920a102e89957f2327b435077c468520aabba9.zip
*** empty log message ***
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
index a688e4caa..ed5ada09b 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java
@@ -24,6 +24,7 @@ import org.eclipse.jface.viewers.*;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.*;
import org.eclipse.ui.model.IWorkbenchAdapter;
import org.eclipse.ui.plugin.AbstractUIPlugin;
@@ -160,10 +161,16 @@ public class DebugUIPlugin extends AbstractUIPlugin implements ISelectionChanged
}
protected void shutdown() {
+ Shell shell= fWindow.getShell();
+ if (shell == null || shell.isDisposed()) {
+ return;
+ }
if (fPage != null) {
fPage.removePartListener(this);
}
- fWindow.removePageListener(this);
+ if (fWindow != null) {
+ fWindow.removePageListener(this);
+ }
}
/**

Back to the top