Skip to content

Commit 09bdf82

Browse files
Merge branch 'master' of github.com:TMC-C/tmc-csharp-runner
2 parents 29eef7f + 7b7aa78 commit 09bdf82

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)