diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-06-19 05:03:44 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-06-19 05:04:42 +0300 |
commit | f2e387501ac1411ff0f62349013c5a28d4085180 (patch) | |
tree | f97c6c0af80a4feed2145bd580b7e8a78ecd0913 /main/src/addins/NUnit | |
parent | fead78a03c739833e4c6a0adf4c53a806aee7cc4 (diff) |
[NUnit] Fix explicit dereference of null
CID 113998
Diffstat (limited to 'main/src/addins/NUnit')
-rw-r--r-- | main/src/addins/NUnit/Services/UnitTestResult.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/addins/NUnit/Services/UnitTestResult.cs b/main/src/addins/NUnit/Services/UnitTestResult.cs index c81ab3babf..25d6e4227f 100644 --- a/main/src/addins/NUnit/Services/UnitTestResult.cs +++ b/main/src/addins/NUnit/Services/UnitTestResult.cs @@ -64,7 +64,8 @@ namespace MonoDevelop.NUnit UnitTestResult res = new UnitTestResult (); res.status = ResultStatus.Failure; res.Message = message; - res.stackTrace = ex.Message + "\n" + ex.StackTrace; + if (ex != null) + res.stackTrace = ex.Message + "\n" + ex.StackTrace; return res; } |