-
Notifications
You must be signed in to change notification settings - Fork 21
Tuple hashCode crashes when tuple contains null #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-216?orig=1
|
pbadenski said: |
@paulp said: |
@dragos said: |
@odersky said: |
@dragos said: |
When one of the elements of a tuple is null, attempting to put the tuple in a hash map causes a !NullPointerException. It appears that the hashCode method on tuples does not handle null as a tuple element. I would expect a tuple to return some hash code even one of its elements is null.
The text was updated successfully, but these errors were encountered: