diff --git a/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java b/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java index 53b686a72..118c201b2 100644 --- a/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java +++ b/src/main/java/net/openhft/chronicle/map/impl/stage/entry/MapEntryStages.java @@ -215,9 +215,10 @@ public abstract class MapEntryStages extends HashEntryStages boolean tierHasChanged = allocatedChunks.initEntryAndKeyCopying( entrySize, valueSizeOffset - keySizeOffset, pos, entrySizeInChunks); - // implicitly inits key search, locating hashLookupPos on the empty slot - if (tierHasChanged && !ks.searchStateAbsent()) { - throw new AssertionError(); + if (tierHasChanged) { + // implicitly inits key search, locating hashLookupPos on the empty slot + if (!ks.searchStateAbsent()) + throw new AssertionError(); } initValue(newValue);