Skip to content

Commit 051c1e7

Browse files
committed
debug NPE
1 parent ffb6d0d commit 051c1e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/test/dotty/tools/vulpix/SummaryReport.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ final class SummaryReport extends SummaryReporting {
8383
def addStartingMessage(msg: String): Unit =
8484
startingMessages.append(msg)
8585

86-
def addCleanup(f: () => Unit): Unit =
86+
def addCleanup(f: () => Unit): Unit = {
87+
assert(f ne null)
8788
cleanUps.append(f)
89+
}
8890

8991
/** Both echoes the summary to stdout and prints to file */
9092
def echoSummary(): Unit = {

0 commit comments

Comments
 (0)