diff --git a/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java b/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java index b9f1ce853f92b7cafcbc5c5b40624ee8c4ba876f..70b698dd470e911760da863f0bba1d9e03c25f13 100644 --- a/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java +++ b/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java @@ -173,7 +173,9 @@ public class NeatLogicConcurrentSafeCache implements Cache { */ @Override public void putObject(Object key, Object value) { - getCache().put(new Element(key, value)); + if (value != null) { + getCache().put(new Element(key, value)); + } String lockKey = generateLockKey(getId(), key); ReentrantLock lock = LOCAL_LOCK_MAP.get(lockKey); if (lock != null && lock.isLocked() && lock.isHeldByCurrentThread()) {