File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/scala/scala/tools/sculpt/plugin Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments