Skip to content

Commit

Permalink
feat: fix member cache null point exception
Browse files Browse the repository at this point in the history
  • Loading branch information
sunleiz committed Jul 25, 2024
1 parent 8a13cfc commit de4839c
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1344,10 +1344,12 @@ public Mono<DeleteResult> deleteAllGroupMembers(
if (deletedCount == 0) {
return OperationResultPublisherPool.ACKNOWLEDGED_DELETE_RESULT;
}
if (groupIds == null) {
groupIdToMembersCache.invalidateAll();
} else {
groupIdToMembersCache.invalidateAll(groupIds);
if(isMemberCacheEnabled){
if (groupIds == null) {
groupIdToMembersCache.invalidateAll();
} else {
groupIdToMembersCache.invalidateAll(groupIds);
}
}
if (updateMembersVersion) {
return groupVersionService.updateMembersVersion(groupIds)
Expand Down

0 comments on commit de4839c

Please sign in to comment.