Skip to content

Commit

Permalink
rls: fix routeLookupClient may be null in RlsLoadBalancer.requestConn…
Browse files Browse the repository at this point in the history
…ection() (#8379)
  • Loading branch information
skyguard1 committed Aug 10, 2021
1 parent 51d1484 commit 96a5c25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rls/src/main/java/io/grpc/rls/RlsLoadBalancer.java
Expand Up @@ -82,7 +82,9 @@ public void handleResolvedAddresses(ResolvedAddresses resolvedAddresses) {

@Override
public void requestConnection() {
routeLookupClient.requestConnection();
if (routeLookupClient != null) {
routeLookupClient.requestConnection();
}
}

@Override
Expand Down

0 comments on commit 96a5c25

Please sign in to comment.