From 1a6b1298e2c01e387ddc8e4d2440edcb0850cb52 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Fri, 17 Oct 2025 16:35:41 +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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java b/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java index 8249070b3..e9826018e 100644 --- a/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java +++ b/src/main/java/neatlogic/framework/dao/cache/NeatLogicConcurrentSafeCache.java @@ -182,7 +182,9 @@ public class NeatLogicConcurrentSafeCache implements Cache { @Override public void putObject(Object key, Object value) { - getCache().put(key, value); + if (value != null) { + getCache().put(key, value); + } String lockKey = generateLockKey(getId(), key); ReentrantLock lock = LOCAL_LOCK_MAP.get(lockKey); if (lock != null && lock.isLocked() && lock.isHeldByCurrentThread()) { @@ -238,4 +240,4 @@ public class NeatLogicConcurrentSafeCache implements Cache { } return resultList; } -} \ No newline at end of file +} -- Gitee