(bugfix) check null when obtaining the RpcClient. (#11042)
* fix-11028 * fix-11028 * fix-11028
This commit is contained in:
parent
35bc0373a5
commit
27216603c2
@ -98,7 +98,10 @@ public class ClusterRpcClientProxy extends MemberChangeListener {
|
||||
Map.Entry<String, RpcClient> next1 = iterator.next();
|
||||
if (next1.getKey().startsWith("Cluster-") && !newMemberKeys.contains(next1.getKey())) {
|
||||
Loggers.CLUSTER.info("member leave,destroy client of member - > : {}", next1.getKey());
|
||||
RpcClientFactory.getClient(next1.getKey()).shutdown();
|
||||
RpcClient client = RpcClientFactory.getClient(next1.getKey());
|
||||
if (client != null) {
|
||||
RpcClientFactory.getClient(next1.getKey()).shutdown();
|
||||
}
|
||||
iterator.remove();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user