summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2008-04-14 02:11:19 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2008-04-14 02:11:19 +0000
commitf5321be1aa20242aeb20ed33c35525ca2ae90299 (patch)
tree187bd4e5c2830f9ab7a3684f8fadc4777325de80 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parentf4ab1e5dfa6e907500c68bdca0decbd33d4369e8 (diff)
downloadscala-f5321be1aa20242aeb20ed33c35525ca2ae90299.tar.gz
scala-f5321be1aa20242aeb20ed33c35525ca2ae90299.tar.bz2
scala-f5321be1aa20242aeb20ed33c35525ca2ae90299.zip
fix for #740
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index db35ab1681..6d75b2c9a4 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -2973,7 +2973,7 @@ trait Typers { self: Analyzer =>
case DocDef(comment, defn) =>
val ret = typed(defn, mode, pt)
- if (comments ne null) comments(defn.symbol) = comment
+ if ((comments ne null) && (defn.symbol ne null) && (defn.symbol ne NoSymbol)) comments(defn.symbol) = comment
ret
case Annotation(constr, elements) =>