Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java
index 37d07ceec..ae8041c9f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/BreadcrumbItemDropDown.java
@@ -185,7 +185,7 @@ class BreadcrumbItemDropDown implements IBreadcrumbDropDownSite {
return;
shell= fParent.getViewer().getDropDownShell();
- if (shell != null)
+ if (shell != null && !shell.isDisposed())
shell.close();
showMenu();
@@ -545,7 +545,9 @@ class BreadcrumbItemDropDown implements IBreadcrumbDropDownSite {
}
public void close() {
- fShell.close();
+ if (fShell != null && !fShell.isDisposed()) {
+ fShell.close();
+ }
}
public void notifySelection(ISelection selection) {
@@ -553,7 +555,7 @@ class BreadcrumbItemDropDown implements IBreadcrumbDropDownSite {
}
public void updateSize() {
- if (!fShell.isDisposed()) {
+ if (fShell != null && !fShell.isDisposed()) {
resizeShell(fShell);
}
}

Back to the top