Skip to content

Commit 69fab15

Browse files
committed
Merge pull request #14 from SethTisue/porting-incremental-compiler-fixes
port incremental compiler fixes
2 parents 02cde8a + 80b6594 commit 69fab15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/scala/tools/sculpt/plugin/ExtractDependencies.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ abstract class ExtractDependencies extends PluginComponent {
9595
}
9696

9797
// skip packages
98-
private def symbolsInType(tp: Type) = tp.collect{ case tp if !(tp.typeSymbol hasFlag PACKAGE) => tp.typeSymbolDirect }.toSet
99-
private def flattenTypeToSymbols(tp: Type): List[Symbol] = tp match {
98+
private def symbolsInType(tp: Type) = tp.collect{ case tp if tp != null && !(tp.typeSymbolDirect hasFlag PACKAGE) => tp.typeSymbolDirect }.toSet
99+
private def flattenTypeToSymbols(tp: Type): List[Symbol] = if (tp eq null) Nil else tp match {
100100
case ct: CompoundType => ct.typeSymbolDirect :: ct.parents.flatMap(flattenTypeToSymbols)
101101
case _ => List(tp.typeSymbolDirect)
102102
}

0 commit comments

Comments
 (0)