Skip to content

Commit

Permalink
Fix routeLookupClient may be null
Browse files Browse the repository at this point in the history
  • Loading branch information
skyguard1 committed Aug 6, 2021
1 parent 3668f2e commit d09ba22
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 d09ba22

Please sign in to comment.