diff --git a/src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java b/src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java index 8f378118a..5ef931fa1 100755 --- a/src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java +++ b/src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java @@ -533,7 +533,9 @@ class VanillaChronicleMap, } @Override - public final V putIfAbsent(@net.openhft.lang.model.constraints.NotNull K key, V value) { + public final V putIfAbsent( K key, V value) { + if (key == null ) + throw new NullPointerException(); return put1(key, value, false); }