diff --git a/util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java b/util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java index 3069012507e..7cd9eb010f3 100644 --- a/util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java +++ b/util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java @@ -556,7 +556,7 @@ public Endpoint(EquivalentAddressGroup eag) { addrs = new String[eag.getAddresses().size()]; int i = 0; for (SocketAddress address : eag.getAddresses()) { - addrs[i] = address.toString(); + addrs[i++] = address.toString(); } Arrays.sort(addrs);