diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java b/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java index 10b6da126..c8317bee3 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/util/CacheMap.java @@ -34,8 +34,8 @@ import org.apache.openjpa.lib.util.LRUMap; import org.apache.openjpa.lib.util.ReferenceHashMap; import org.apache.openjpa.lib.util.ReferenceMap; import org.apache.openjpa.lib.util.SizedMap; -import java.util.concurrent.ConcurrentHashMap; import org.apache.openjpa.lib.util.concurrent.ConcurrentReferenceHashMap; +import org.apache.openjpa.lib.util.concurrent.NullSafeConcurrentHashMap; import org.apache.openjpa.lib.util.concurrent.SizedConcurrentHashMap; import java.util.concurrent.locks.ReentrantLock; @@ -114,7 +114,7 @@ public class CacheMap softMapValueExpired(key); } }; - pinnedMap = new ConcurrentHashMap(); + pinnedMap = new NullSafeConcurrentHashMap(); if (!lru) { cacheMap = new SizedConcurrentHashMap(size, load, concurrencyLevel){