diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/util/ClassPath.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/util/ClassPath.scala b/src/compiler/scala/tools/nsc/util/ClassPath.scala index a7abccf67c..bec73b63ca 100644 --- a/src/compiler/scala/tools/nsc/util/ClassPath.scala +++ b/src/compiler/scala/tools/nsc/util/ClassPath.scala @@ -177,7 +177,9 @@ class ClassPath(onlyPresentation: Boolean) { def lookupPath(path: String, isDir: Boolean) = { val ctx = root.find(path, isDir) + System.err.println("CTX=" + ctx); if (ctx.entries.isEmpty) null + else if (ctx.entries.head == null) null; else ctx.entries.head.location } |