diff --git a/src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java b/src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java index 5ef931fa1..6c0147f99 100755 --- a/src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java +++ b/src/main/java/net/openhft/chronicle/map/VanillaChronicleMap.java @@ -539,7 +539,9 @@ class VanillaChronicleMap, return put1(key, value, false); } - V put1(@net.openhft.lang.model.constraints.NotNull K key, V value, boolean replaceIfPresent) { + V put1( K key, V value, boolean replaceIfPresent) { + if (key == null) + throw new NullPointerException(); checkKey(key); checkValue(value); ThreadLocalCopies copies = keyInteropProvider.getCopies(null);