diff options
author | Andrey Loskutov | 2022-02-10 17:05:12 +0000 |
---|---|---|
committer | Andrey Loskutov | 2022-02-10 17:27:44 +0000 |
commit | e583bf6933e54467302239a27e5aad0554fa77ab (patch) | |
tree | 04828de95a6874a1291401aafa9758e7c94bde5b | |
parent | 84883788fcd3a44e36e386c458d667114e6e3488 (diff) | |
download | eclipse.platform.debug-e583bf6933e54467302239a27e5aad0554fa77ab.tar.gz eclipse.platform.debug-e583bf6933e54467302239a27e5aad0554fa77ab.tar.xz eclipse.platform.debug-e583bf6933e54467302239a27e5aad0554fa77ab.zip |
Bug 413212 - AssertionFailedException when right-click in Debug viewY20220213-0900Y20220212-0800Y20220211-0800I20220213-1800I20220213-0600I20220212-2040I20220212-1800I20220212-0800I20220212-0600I20220212-0140I20220211-1800I20220210-1800
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.java | 8 |
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); |