diff --git a/src/test/java/net/openhft/chronicle/map/jrs166/map/StatelessChronicleMapTest.java b/src/test/java/net/openhft/chronicle/map/jrs166/map/StatelessChronicleMapTest.java index cf4f1b994..b12dda64d 100755 --- a/src/test/java/net/openhft/chronicle/map/jrs166/map/StatelessChronicleMapTest.java +++ b/src/test/java/net/openhft/chronicle/map/jrs166/map/StatelessChronicleMapTest.java @@ -109,6 +109,8 @@ public class StatelessChronicleMapTest extends JSR166TestCase { @Override public V put(K key, V value) { + if (key == null) + throw new NullPointerException(); return d.put(key, value); } @@ -204,6 +206,8 @@ public class StatelessChronicleMapTest extends JSR166TestCase { @Override public V putIfAbsent(K key, V value) { + if (key == null) + throw new NullPointerException(); return d.putIfAbsent(key, value); }