diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/SymbolWalker.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/SymbolWalker.scala b/src/compiler/scala/tools/nsc/symtab/SymbolWalker.scala index d40bd62c4a..0c084a1e3c 100644 --- a/src/compiler/scala/tools/nsc/symtab/SymbolWalker.scala +++ b/src/compiler/scala/tools/nsc/symtab/SymbolWalker.scala @@ -180,7 +180,7 @@ trait SymbolWalker { f(dup) } else f(tree.ref) case tree : CompoundTypeTree => - if (tree.tpe.typeSymbol.isRefinementClass) tree.tpe.typeSymbol.info match { + if (tree.tpe != null && tree.tpe.typeSymbol != null && tree.tpe.typeSymbol.isRefinementClass) tree.tpe.typeSymbol.info match { case tpe : RefinedType => tpe.parents.zip(tree.templ.parents).foreach{ case (tpe,tree) => |