fixed NullPointer exception in CachedAttributesService

This commit is contained in:
dashevchenko 2025-02-05 13:30:42 +02:00
parent b2bf5b9f65
commit 3d9897f5af

View File

@ -266,7 +266,9 @@ public class CachedAttributesService implements AttributesService {
String key = keyVersionPair.getFirst();
Long version = keyVersionPair.getSecond();
cache.evict(new AttributeCacheKey(scope, entityId, key), version);
if (version != null) {
edqsService.onDelete(tenantId, ObjectType.ATTRIBUTE_KV, new AttributeKv(entityId, scope, key, version));
}
return key;
}, cacheExecutor)).collect(Collectors.toList()));
}