diff options
author | Keting Yang <ketyang@microsoft.com> | 2019-09-06 17:41:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-06 17:41:07 +0300 |
commit | eb4f84a52967675a8bdacb774ad10155bd5e2a39 (patch) | |
tree | 368ce362531a714bd167463708cdd1c1dafb3ebf /main/src/addins/MonoDevelop.UnitTesting | |
parent | 18751d54524db5f38ce7ddd79b20f6b464238f35 (diff) |
null check for test
Diffstat (limited to 'main/src/addins/MonoDevelop.UnitTesting')
-rw-r--r-- | main/src/addins/MonoDevelop.UnitTesting/Gui/TestNodeBuilder.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.UnitTesting/Gui/TestNodeBuilder.cs b/main/src/addins/MonoDevelop.UnitTesting/Gui/TestNodeBuilder.cs index 3cd527da93..643666fdbe 100644 --- a/main/src/addins/MonoDevelop.UnitTesting/Gui/TestNodeBuilder.cs +++ b/main/src/addins/MonoDevelop.UnitTesting/Gui/TestNodeBuilder.cs @@ -218,7 +218,7 @@ namespace MonoDevelop.UnitTesting protected void OnUpdateShowTest (CommandInfo info) { UnitTest test = CurrentNode.DataItem as UnitTest; - info.Enabled = test.SourceCodeLocation != null; + info.Enabled = test?.SourceCodeLocation != null; } [CommandHandler (TestCommands.GoToFailure)] |