diff options
author | Sarika Sinha | 2021-05-27 11:39:34 +0000 |
---|---|---|
committer | Sarika Sinha | 2021-06-07 20:16:25 +0000 |
commit | 4ffee3748e6d706c7fa9d68871bcc26bbf9db121 (patch) | |
tree | c5b66ad7f407c961298bc58c88f6af201f4f456d | |
parent | 0ec731a953f5dd77db68fa6689ddeae7ec514e6b (diff) | |
download | eclipse.platform.debug-4ffee3748e6d706c7fa9d68871bcc26bbf9db121.tar.gz eclipse.platform.debug-4ffee3748e6d706c7fa9d68871bcc26bbf9db121.tar.xz eclipse.platform.debug-4ffee3748e6d706c7fa9d68871bcc26bbf9db121.zip |
Bug 573806 - null argument:Action must not be nullY20210611-0900Y20210608-2330I20210611-2000I20210610-1850I20210609-1800I20210608-2130I20210608-1800I20210608-1300
Change-Id: I54e6f419e7baa24622d8e8cca957b2ad4da62044
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/181097
Tested-by: Platform Bot <platform-bot@eclipse.org>
Reviewed-by: Sarika Sinha <sarika.sinha@in.ibm.com>
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java index 4a4fdefd8..c767ac88b 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointsView.java @@ -1,5 +1,5 @@ /***************************************************************** - * Copyright (c) 2009, 2018 Texas Instruments and others + * Copyright (c) 2009, 2021 Texas Instruments and others * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -196,8 +196,11 @@ public class BreakpointsView extends VariablesView implements IBreakpointManager menu.add(getAction(ACTION_GOTO_MARKER)); menu.add(new Separator(IDebugUIConstants.EMPTY_BREAKPOINT_GROUP)); menu.add(new Separator(IDebugUIConstants.BREAKPOINT_GROUP)); - menu.add(getAction(PASTE_ACTION)); - IAction action = getAction(ACTION_REMOVE_FROM_GROUP); + IAction action = getAction(PASTE_ACTION); + if (action != null) { + menu.add(action); + } + action = getAction(ACTION_REMOVE_FROM_GROUP); if (action != null && action.isEnabled()) { menu.add(action); } |