We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 29eef7f + 7b7aa78 commit 09bdf82Copy full SHA for 09bdf82
Core/Test/MethodTestResult.cs
@@ -48,7 +48,7 @@ internal static MethodTestResult FromFail(TestFailedInfo info)
48
ErrorStackTrace = StackTraceToList(info.ExceptionStackTrace)
49
};
50
51
- static string[] StackTraceToList(string stackTrace) => stackTrace.Split(Environment.NewLine);
+ static string[] StackTraceToList(string stackTrace) => stackTrace?.Split(Environment.NewLine) ?? Array.Empty<string>();
52
}
53
54
0 commit comments