Skip to content

Commit 52f1848

Browse files
committed
fix the npe in the hashCode method when subscriptionDataSet is null
1 parent e4b731c commit 52f1848

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

remoting/src/main/java/org/apache/rocketmq/remoting/protocol/subscription/SubscriptionGroupConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public int hashCode() {
190190
prime * result + (int) (whichBrokerWhenConsumeSlowly ^ (whichBrokerWhenConsumeSlowly >>> 32));
191191
result = prime * result + groupSysFlag;
192192
result = prime * result + consumeTimeoutMinute;
193-
result = prime * result + subscriptionDataSet.hashCode();
193+
result = prime * result + ((subscriptionDataSet == null) ? 0 : subscriptionDataSet.hashCode());
194194
result = prime * result + attributes.hashCode();
195195
return result;
196196
}

0 commit comments

Comments
 (0)