SweetWuXiaoMei commented on code in PR #4718:
URL:
https://github.com/apache/servicecomb-java-chassis/pull/4718#discussion_r1955814983
##########
handlers/handler-loadbalance/src/main/java/org/apache/servicecomb/loadbalance/RandomRuleExt.java:
##########
@@ -28,10 +28,10 @@
public class RandomRuleExt implements RuleExt {
@Override
public ServiceCombServer choose(List<ServiceCombServer> servers, Invocation
invocation) {
- if (servers.isEmpty()) {
+ if (servers == null || servers.isEmpty()) {
Review Comment:
servers field may be null
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]