summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-04-04 16:34:02 +0000
committerMartin Odersky <odersky@gmail.com>2011-04-04 16:34:02 +0000
commit98b50d2f52d1c0004e30ccf44914153aff8289a5 (patch)
tree7389eed322a21c3f447f7a54a1c23b12af080abe /src/compiler
parent557a0ebd03e224f3773c78eddf9cbd059bce924a (diff)
downloadscala-98b50d2f52d1c0004e30ccf44914153aff8289a5.tar.gz
scala-98b50d2f52d1c0004e30ccf44914153aff8289a5.tar.bz2
scala-98b50d2f52d1c0004e30ccf44914153aff8289a5.zip
Fixed crashes in IDE on default parameters in c...
Fixed crashes in IDE on default parameters in constructors.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala2
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)
}