We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 267b9ce commit 603973eCopy full SHA for 603973e
compiler/src/dotty/tools/dotc/core/Decorators.scala
@@ -284,7 +284,7 @@ object Decorators {
284
case _ => String.valueOf(x).nn
285
286
/** Returns the simple class name of `x`. */
287
- def className: String = x.getClass.getSimpleName.nn
+ def className: String = if x == null then "<null>" else x.getClass.getSimpleName.nn
288
289
extension [T](x: T)
290
def assertingErrorsReported(using Context): T = {
0 commit comments