Skip to content

Commit

Permalink
Fix failed to validate the relationship group key #1582
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChenX committed Dec 2, 2024
1 parent e3408d9 commit ff69c24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static void validRelationshipKey(UserRelationship.Key key) {
}

public static void validRelationshipGroupKey(UserRelationshipGroup.Key key) {
if (key != null && key.getOwnerId() != null && key.getGroupIndex() != null) {
if (key == null || key.getOwnerId() == null || key.getGroupIndex() == null) {
throw NULL_USER_RELATIONSHIP_GROUP_KEY;
}
}
Expand Down

0 comments on commit ff69c24

Please sign in to comment.