From f3cddf4bebb882599df885067ab13ea3aac40586 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Thu, 9 Jan 2025 10:47:15 +0300 Subject: [PATCH] Fixed - RLocalCachedMap.fastRemove() method may throw NPE if storeMode = LOCALCACHE --- redisson/src/main/java/org/redisson/RedissonLocalCachedMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redisson/src/main/java/org/redisson/RedissonLocalCachedMap.java b/redisson/src/main/java/org/redisson/RedissonLocalCachedMap.java index d564931f1..a45771c9d 100644 --- a/redisson/src/main/java/org/redisson/RedissonLocalCachedMap.java +++ b/redisson/src/main/java/org/redisson/RedissonLocalCachedMap.java @@ -447,7 +447,7 @@ public class RedissonLocalCachedMap extends RedissonMap implements R @Override protected RFuture> fastRemoveOperationBatchAsync(@SuppressWarnings("unchecked") K... keys) { if (storeMode == LocalCachedMapOptions.StoreMode.LOCALCACHE) { - return new CompletableFutureWrapper<>(Collections.emptyList()); + return new CompletableFutureWrapper<>(Collections.emptyList()); } if (invalidateEntryOnChange == 1) {