Skip to content

Commit 00dee16

Browse files
committed
Fix ParallelTesting NPE
1 parent faad097 commit 00dee16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/test/dotty/tools/dotc/ParallelTesting.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ trait ParallelTesting { self =>
395395
extends Test(testSources, times, threadLimit, suppressAllOutput) {
396396
private def runMain(dir: JFile, testSource: TestSource): Array[String] = {
397397
def renderStackTrace(ex: Throwable): String =
398-
ex.getStackTrace
398+
if (ex == null) ""
399+
else ex.getStackTrace
399400
.takeWhile(_.getMethodName != "invoke0")
400401
.mkString(" ", "\n ", "")
401402

0 commit comments

Comments
 (0)