Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2018-06-08 10:34:11 -0400
committerAndrey Loskutov2018-06-08 10:34:11 -0400
commitf89fc7138f82bccea6e961d78faeb8885681a3db (patch)
tree10feab58cd61520b31602bc5360b52c5dea1613e /org.eclipse.debug.ui
parentabce592a8af295a655b82b9986333ef2135c64bd (diff)
downloadeclipse.platform.debug-f89fc7138f82bccea6e961d78faeb8885681a3db.tar.gz
eclipse.platform.debug-f89fc7138f82bccea6e961d78faeb8885681a3db.tar.xz
eclipse.platform.debug-f89fc7138f82bccea6e961d78faeb8885681a3db.zip
Bug 535707 - AssertionFailedException via LaunchView.showBreadcrumbPage
DebugContextEvent expects a non-null context object. Change-Id: I6268e8cda92c619c2b900812be762ca86360c972 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
index 4d6e66cb1..94892d425 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
@@ -98,6 +98,7 @@ import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.ITreeSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
+import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.jface.viewers.TreePath;
import org.eclipse.jface.viewers.TreeSelection;
@@ -866,9 +867,13 @@ public class LaunchView extends AbstractDebugView
if (getSite().getPage().getActivePart() == this) {
setFocus();
}
- fBreadcrumbPage.fCrumb.debugContextChanged(new DebugContextEvent(
+ ISelection activeContext = fTreeViewerDebugContextProvider.getActiveContext();
+ if (activeContext == null) {
+ activeContext = StructuredSelection.EMPTY;
+ }
+ fBreadcrumbPage.fCrumb.debugContextChanged(new DebugContextEvent(
fTreeViewerDebugContextProvider,
- fTreeViewerDebugContextProvider.getActiveContext(),
+ activeContext,
DebugContextEvent.ACTIVATED));
fContextProviderProxy.setActiveProvider(fBreadcrumbPage.getContextProvider());
}

Back to the top