Skip to content

Commit

Permalink
Fix NPE when the group member cache is disabled
Browse files Browse the repository at this point in the history
Fix NPE when the group member cache is disabled

---------

Co-authored-by: sunleiz <sunleiz@enn.cn>
  • Loading branch information
santifuhuo and sunleiz authored Jul 28, 2024
1 parent 8a13cfc commit 41c9826
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 41c9826

Please sign in to comment.