diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-12-03 09:00:33 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-12-03 09:00:33 +0000 |
commit | db0cba83507454961d2684ec7ba3ea6c70a9af15 (patch) | |
tree | 0f2e7cbe7aae9eabaa5bd70b357f559ca9ec47fe /src | |
parent | de4e67acfba8ab74a199c4e0d8a76c7d122d09fe (diff) | |
download | scala-db0cba83507454961d2684ec7ba3ea6c70a9af15.tar.gz scala-db0cba83507454961d2684ec7ba3ea6c70a9af15.tar.bz2 scala-db0cba83507454961d2684ec7ba3ea6c70a9af15.zip |
Fixed #216
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/runtime/ScalaRunTime.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/scala/runtime/ScalaRunTime.scala b/src/library/scala/runtime/ScalaRunTime.scala index c88aed2326..947c02613b 100644 --- a/src/library/scala/runtime/ScalaRunTime.scala +++ b/src/library/scala/runtime/ScalaRunTime.scala @@ -82,7 +82,8 @@ object ScalaRunTime { val arr = x.productArity var i = 0 while (i < arr) { - code = code * 41 + x.productElement(i).hashCode() + val elem = x.productElement(i) + code = code * 41 + (if (elem == null) 0 else elem.hashCode()) i += 1 } code |