Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2020-05-14 08:27:00 +0000
committerAndrey Loskutov2020-05-14 15:53:26 +0000
commitcbe9fed0f88f2890c7d8f1130daa9e0a7378d882 (patch)
treedba4beed93e8e7bd5e944a720148dbc3c49101ec
parenteb88fc52b3ea850a942e749b8eb3a764674d8417 (diff)
downloadeclipse.platform.debug-cbe9fed0f88f2890c7d8f1130daa9e0a7378d882.tar.gz
eclipse.platform.debug-cbe9fed0f88f2890c7d8f1130daa9e0a7378d882.tar.xz
eclipse.platform.debug-cbe9fed0f88f2890c7d8f1130daa9e0a7378d882.zip
Change-Id: Ie38807e6b637db51decf3151802c619d85bfc411 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contexts/DebugContextManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contexts/DebugContextManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contexts/DebugContextManager.java
index 584e3935f..e24431296 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contexts/DebugContextManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/contexts/DebugContextManager.java
@@ -146,6 +146,10 @@ public class DebugContextManager implements IDebugContextManager {
protected IDebugContextService createService(IWorkbenchWindow window) {
DebugWindowContextService service = fServices.get(window);
if (service == null) {
+ if (window == null) {
+ // the window has been closed - return a dummy service
+ return NULL_SERVICE;
+ }
IEvaluationService evaluationService = window.getService(IEvaluationService.class);
if (window.getShell() == null || evaluationService == null) {
// the window has been closed - return a dummy service

Back to the top