From 50c701a8cb47815fcb00618185871a85731fd783 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 17 Oct 2025 16:53:54 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E8=AE=BE=E7=BD=AE=E4=BF=9D=E5=AD=98=E6=97=B6?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1534125016580096]资产清单设置保存时报错 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1534125016580096 --- .../framework/dao/cache/NeatLogicConcurrentSafeCache.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java b/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java index b9f1ce853..70b698dd4 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()) { -- Gitee