fixed NullPointer exception in CachedAttributesService
This commit is contained in:
parent
b2bf5b9f65
commit
3d9897f5af
@ -266,7 +266,9 @@ public class CachedAttributesService implements AttributesService {
|
|||||||
String key = keyVersionPair.getFirst();
|
String key = keyVersionPair.getFirst();
|
||||||
Long version = keyVersionPair.getSecond();
|
Long version = keyVersionPair.getSecond();
|
||||||
cache.evict(new AttributeCacheKey(scope, entityId, key), version);
|
cache.evict(new AttributeCacheKey(scope, entityId, key), version);
|
||||||
edqsService.onDelete(tenantId, ObjectType.ATTRIBUTE_KV, new AttributeKv(entityId, scope, key, version));
|
if (version != null) {
|
||||||
|
edqsService.onDelete(tenantId, ObjectType.ATTRIBUTE_KV, new AttributeKv(entityId, scope, key, version));
|
||||||
|
}
|
||||||
return key;
|
return key;
|
||||||
}, cacheExecutor)).collect(Collectors.toList()));
|
}, cacheExecutor)).collect(Collectors.toList()));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user