Bug 573806 - null argument:Action must not be null

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>
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 4a4fdef..c767ac8 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 @@
 		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);
 		}