Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2022-02-10 17:05:12 +0000
committerAndrey Loskutov2022-02-10 17:27:44 +0000
commite583bf6933e54467302239a27e5aad0554fa77ab (patch)
tree04828de95a6874a1291401aafa9758e7c94bde5b
parent84883788fcd3a44e36e386c458d667114e6e3488 (diff)
downloadeclipse.platform.debug-e583bf6933e54467302239a27e5aad0554fa77ab.tar.gz
eclipse.platform.debug-e583bf6933e54467302239a27e5aad0554fa77ab.tar.xz
eclipse.platform.debug-e583bf6933e54467302239a27e5aad0554fa77ab.zip
Not a fix, added a bit more context to the error. Change-Id: Ib8c7234be47aa4cd2e01163fc929b7069e53447f Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/190687 Tested-by: Platform Bot <platform-bot@eclipse.org> Reviewed-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
index 4dc79e2b0..7e89642b8 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
@@ -1086,7 +1086,13 @@ public class VariablesView extends AbstractDebugView implements IDebugContextLis
protected void fillContextMenu(IMenuManager menu) {
menu.add(new Separator(IDebugUIConstants.EMPTY_VARIABLE_GROUP));
menu.add(new Separator(IDebugUIConstants.VARIABLE_GROUP));
- menu.add(getAction(FIND_ACTION));
+ IAction findAction = getAction(FIND_ACTION);
+ if (findAction != null) {
+ menu.add(findAction);
+ } else {
+ DebugUIPlugin.log(new IllegalStateException("No action found for id: " + FIND_ACTION //$NON-NLS-1$
+ + ", fGlobalActionMap: " + fGlobalActionMap)); //$NON-NLS-1$
+ }
ChangeVariableValueAction changeValueAction = (ChangeVariableValueAction)getAction("ChangeVariableValue"); //$NON-NLS-1$
if (changeValueAction.isApplicable()) {
menu.add(changeValueAction);

Back to the top