Skip to content

Commit 13f6a91

Browse files
committed
Make "new StoreReporter(null)" work
1 parent b2a61c1 commit 13f6a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/StoreReporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ class StoreReporter(outer: Reporter) extends Reporter {
4040
if (infos != null) try infos.toList finally infos = null
4141
else Nil
4242

43-
override def errorsReported = hasErrors || outer.errorsReported
43+
override def errorsReported = hasErrors || (outer != null && outer.errorsReported)
4444
}

0 commit comments

Comments
 (0)