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 af26d47 + dabc4e8 commit 659a92f
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 659a92f

Please sign in to comment.