Fixed - RLocalCachedMap.fastRemove() method may throw NPE if storeMode = LOCALCACHE

pull/6384/head
Nikita Koksharov 2 months ago
parent be3cc5b2ef
commit f3cddf4beb

@ -447,7 +447,7 @@ public class RedissonLocalCachedMap<K, V> extends RedissonMap<K, V> implements R
@Override @Override
protected RFuture<List<Long>> fastRemoveOperationBatchAsync(@SuppressWarnings("unchecked") K... keys) { protected RFuture<List<Long>> fastRemoveOperationBatchAsync(@SuppressWarnings("unchecked") K... keys) {
if (storeMode == LocalCachedMapOptions.StoreMode.LOCALCACHE) { if (storeMode == LocalCachedMapOptions.StoreMode.LOCALCACHE) {
return new CompletableFutureWrapper<>(Collections.emptyList()); return new CompletableFutureWrapper<>(Collections.<Long>emptyList());
} }
if (invalidateEntryOnChange == 1) { if (invalidateEntryOnChange == 1) {

Loading…
Cancel
Save