Changeset: 7baa22e6a6b3
Author:    mduigou
Date:      2012-06-01 00:05 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7baa22e6a6b3

7173432: Handle null key at HashMap resize
Summary: If the key to be inserted into a HashMap is null and the table needs 
to be resized as part of the insertion then addEntry will try to recalculate 
the hash of a null key. This will fail with an NPE.
Reviewed-by: darcy

! src/share/classes/java/util/HashMap.java
+ test/java/util/HashMap/NullKeyAtResize.java

Reply via email to