summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-08-15 15:02:18 -0700
committerPaul Phillips <paulp@improving.org>2013-08-17 07:33:42 -0700
commit5eb5ad51c75573e51ad48d1b0bf06879de2b4ca6 (patch)
treeb23f4485e85c75455ad202ccb8bdf56590ef82e7 /src
parent5212aaf439d0235b436aa71c156520ddecaf0397 (diff)
downloadscala-5eb5ad51c75573e51ad48d1b0bf06879de2b4ca6.tar.gz
scala-5eb5ad51c75573e51ad48d1b0bf06879de2b4ca6.tar.bz2
scala-5eb5ad51c75573e51ad48d1b0bf06879de2b4ca6.zip
Repair NPE in -Ytyper-debug output.
Diffstat (limited to 'src')
-rw-r--r--src/reflect/scala/reflect/internal/TypeDebugging.scala2
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