Index: sdk/lib/core/map.dart |
diff --git a/sdk/lib/core/map.dart b/sdk/lib/core/map.dart |
index e9b52b62afecb220a2bd4348acdda6b19c679972..58c9bf2f497463092bb8765ad8c58c5e00927e48 100644 |
--- a/sdk/lib/core/map.dart |
+++ b/sdk/lib/core/map.dart |
@@ -189,7 +189,7 @@ class _HashMapImpl<K, V> implements HashMap<K, V> { |
} |
int _probeForAdding(K key) { |
- if (key == null) throw new ArgumentError(null); |
+ if (key == null) throw const NullPointerException(); |
int hash = _firstProbe(key.hashCode, _keys.length); |
int numberOfProbes = 1; |
int initialHash = hash; |
@@ -224,7 +224,7 @@ class _HashMapImpl<K, V> implements HashMap<K, V> { |
} |
int _probeForLookup(K key) { |
- if (key == null) throw new ArgumentError(null); |
+ if (key == null) throw const NullPointerException(); |
int hash = _firstProbe(key.hashCode, _keys.length); |
int numberOfProbes = 1; |
int initialHash = hash; |