Skip to content

Commit 7b7aa78

Browse files
committed
Apperantly stack trace can be null sometimes
1 parent d3d3456 commit 7b7aa78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Test/MethodTestResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ internal static MethodTestResult FromFail(TestFailedInfo info)
4848
ErrorStackTrace = StackTraceToList(info.ExceptionStackTrace)
4949
};
5050

51-
static string[] StackTraceToList(string stackTrace) => stackTrace.Split(Environment.NewLine);
51+
static string[] StackTraceToList(string stackTrace) => stackTrace?.Split(Environment.NewLine) ?? Array.Empty<string>();
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)