Check for null subsets. Fixes #734
This commit is contained in:
@@ -119,7 +119,7 @@ public class KubernetesInformerDiscoveryClient implements DiscoveryClient, Initi
|
||||
|
||||
V1Endpoints ep = this.endpointsLister.namespace(service.getMetadata().getNamespace())
|
||||
.get(service.getMetadata().getName());
|
||||
if (ep == null) {
|
||||
if (ep == null || ep.getSubsets() == null) {
|
||||
// no available endpoints in the cluster
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user