Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2019-08-07 17:33:05 +0300
committerGitHub <noreply@github.com>2019-08-07 17:33:05 +0300
commit805766a5007744222b06177d94f4523d853f9b3b (patch)
tree3e88f4b908fe3b64b6ce072e590ede38a1c872ea /main
parentb2ebfa8acc17c3a01d2cb357fedef5ebd9d63db5 (diff)
parentf3f1a385941f0d854ec1d96e56f24938a246569b (diff)
Merge pull request #8330 from mono/backport-pr-8235-to-release-8.2
[release-8.2] [IDE] Handle bindings returning null commands
Diffstat (limited to 'main')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs
index 326e5a8299..67aea3f5a5 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs
@@ -478,8 +478,14 @@ namespace MonoDevelop.Components.Commands
}
#endif
// Handle the GDK key via MD commanding
- if (ProcessKeyEventCore (ev))
- return true;
+ try {
+ if (ProcessKeyEventCore (ev)) {
+ return true;
+ }
+ } catch (Exception ex) {
+ LoggingService.LogInternalError ("Exception while parsing command", ex);
+ return false;
+ }
#if MAC
// Otherwise if we have a native first responder that is not the GdkQuartzView
@@ -547,6 +553,10 @@ namespace MonoDevelop.Components.Commands
return false;
}
+ if (commands == null) {
+ return false;
+ }
+
var toplevelFocus = IdeApp.Workbench.HasToplevelFocus;
var conflict = new List<Command> ();