diff options
author | Sarika Sinha | 2015-09-11 09:04:35 +0000 |
---|---|---|
committer | Sarika Sinha | 2015-09-11 09:04:35 +0000 |
commit | ae3934bcd4d225126bb515b87fd741b28879db6e (patch) | |
tree | 8a3b5429e0f17adcd110a96dcd4ffbe01d823365 | |
parent | b0421453567a6e3bbb41f6892c3e52b76f378c9a (diff) | |
download | eclipse.platform.debug-ae3934bcd4d225126bb515b87fd741b28879db6e.tar.gz eclipse.platform.debug-ae3934bcd4d225126bb515b87fd741b28879db6e.tar.xz eclipse.platform.debug-ae3934bcd4d225126bb515b87fd741b28879db6e.zip |
Bug 476928 - NullPointerException in DebugActionHandler.getDelegate
(DebugActionHandler.java:48)
Change-Id: I6d7b2192d0f94f98349282773c51d3723758d81c
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugActionHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugActionHandler.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugActionHandler.java index 0d4316589..1a3591ef3 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugActionHandler.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/commands/actions/DebugActionHandler.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. + * Copyright (c) 2010, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -44,7 +44,7 @@ public abstract class DebugActionHandler implements IHandler2 { */ protected IHandler2 getDelegate() { IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); - if (window != null) { + if (window != null && window.getActivePage() != null) { IViewReference reference = window.getActivePage().findViewReference(IDebugUIConstants.ID_DEBUG_VIEW); if (reference != null) { IViewPart view = reference.getView(false); |