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:
authorSandy Armstrong <sandy@xamarin.com>2019-11-07 21:26:35 +0300
committermonojenkins <jo.shields+jenkins@xamarin.com>2019-11-07 22:27:19 +0300
commitce05be961950940f53737f57527dae552b93b650 (patch)
treee34ac1548398f53aa32e9704645ed32226df4cd3 /main
parentd56723f77524e13653de6c9328a460a657c383c6 (diff)
CommandManager: Add missing null check
Fixes issue where Start Window couldn't open projects. Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1017605
Diffstat (limited to 'main')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs2
1 files changed, 1 insertions, 1 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 ec09680f0b..f2bafbd922 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs
@@ -2439,7 +2439,7 @@ namespace MonoDevelop.Components.Commands
}
} while (container != null);
- return widget.nativeWidget is Gtk.Widget ? widget : null;
+ return widget?.nativeWidget is Gtk.Widget ? widget : null;
}
#if MAC