Skip to content

Commit

Permalink
Merge pull request #1025 from pkyriakou23/fixing_issue997
Browse files Browse the repository at this point in the history
[ISSUE #997] [Bug] ProducerGroupConf equals method doesn't work
close #997
  • Loading branch information
xwm1992 committed Jul 27, 2022
2 parents 76b39f6 + 5d7d8f6 commit ab19338
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ public boolean equals(Object o) {
return false;
}
ProducerGroupConf that = (ProducerGroupConf) o;
return groupName == that.groupName;

if (groupName == that.groupName) {
return true;
}
if (groupName == null) {
return false;
}
return groupName.equals(that.groupName);
}

@Override
Expand Down

0 comments on commit ab19338

Please sign in to comment.