diff options
author | Andrey Loskutov | 2020-05-14 08:27:00 +0000 |
---|---|---|
committer | Andrey Loskutov | 2020-05-14 15:53:26 +0000 |
commit | cbe9fed0f88f2890c7d8f1130daa9e0a7378d882 (patch) | |
tree | dba4beed93e8e7bd5e944a720148dbc3c49101ec | |
parent | eb88fc52b3ea850a942e749b8eb3a764674d8417 (diff) | |
download | eclipse.platform.debug-cbe9fed0f88f2890c7d8f1130daa9e0a7378d882.tar.gz eclipse.platform.debug-cbe9fed0f88f2890c7d8f1130daa9e0a7378d882.tar.xz eclipse.platform.debug-cbe9fed0f88f2890c7d8f1130daa9e0a7378d882.zip |
Bug 563151 - NPE in DebugContextManager.createServiceI20200519-1800I20200519-1130I20200519-1010I20200518-2220I20200518-1800I20200516-0600I20200515-1930I20200514-1800
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.java | 4 |
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 |