From 121f23f04d2802a466997e70f40b5a89fa4da665 Mon Sep 17 00:00:00 2001 From: Larry Safran Date: Tue, 19 Dec 2023 14:25:39 -0800 Subject: [PATCH] Add increment as identified in #10768 (#10769) (#10770) --- util/src/main/java/io/grpc/util/MultiChildLoadBalancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);