Fix npe in zone aware invoker (#9851)
This commit is contained in:
parent
feb1792b63
commit
29becdc22a
|
|
@ -100,7 +100,7 @@ public class ZoneAwareClusterInvoker<T> extends AbstractClusterInvoker<T> {
|
|||
|
||||
// load balance among all registries, with registry weight count in.
|
||||
Invoker<T> balancedInvoker = select(loadbalance, invocation, invokers, null);
|
||||
if (balancedInvoker.isAvailable()) {
|
||||
if (balancedInvoker!=null && balancedInvoker.isAvailable()) {
|
||||
return balancedInvoker.invoke(invocation);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue