diff options
author | Paul Phillips <paulp@improving.org> | 2013-08-15 15:02:18 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-08-17 07:33:42 -0700 |
commit | 5eb5ad51c75573e51ad48d1b0bf06879de2b4ca6 (patch) | |
tree | b23f4485e85c75455ad202ccb8bdf56590ef82e7 | |
parent | 5212aaf439d0235b436aa71c156520ddecaf0397 (diff) | |
download | scala-5eb5ad51c75573e51ad48d1b0bf06879de2b4ca6.tar.gz scala-5eb5ad51c75573e51ad48d1b0bf06879de2b4ca6.tar.bz2 scala-5eb5ad51c75573e51ad48d1b0bf06879de2b4ca6.zip |
Repair NPE in -Ytyper-debug output.
-rw-r--r-- | src/reflect/scala/reflect/internal/TypeDebugging.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/TypeDebugging.scala b/src/reflect/scala/reflect/internal/TypeDebugging.scala index 9c1342e68e..fd64d98ca2 100644 --- a/src/reflect/scala/reflect/internal/TypeDebugging.scala +++ b/src/reflect/scala/reflect/internal/TypeDebugging.scala @@ -36,7 +36,7 @@ trait TypeDebugging { case ObjectClass => true case _ => sym.hasPackageFlag } - def skipType(tpe: Type): Boolean = skipSym(tpe.typeSymbolDirect) + def skipType(tpe: Type): Boolean = (tpe eq null) || skipSym(tpe.typeSymbolDirect) def skip(t: Tree): Boolean = t match { case EmptyTree => true |