diff options
author | Sandy Armstrong <sandy@xamarin.com> | 2019-11-07 21:26:35 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2019-11-07 22:27:19 +0300 |
commit | ce05be961950940f53737f57527dae552b93b650 (patch) | |
tree | e34ac1548398f53aa32e9704645ed32226df4cd3 /main | |
parent | d56723f77524e13653de6c9328a460a657c383c6 (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.cs | 2 |
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 |