diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Namers.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala index cd845ab9e5..f7d8b0d887 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala @@ -1011,6 +1011,8 @@ trait Namers { self: Analyzer => if (!classAndNamerOfModule.contains(module)) return // fix #3649 (prevent crash in erroneous source code) val (cdef, nmr) = classAndNamerOfModule(module) + if (nmr == null) + return // can happen in IDE; this is really an ugly hack on top[ of an ugly hack but it seems to work! moduleNamer = Some(cdef, nmr) (cdef, nmr) } |