diff --git a/xds/src/main/java/io/grpc/xds/XdsConfig.java b/xds/src/main/java/io/grpc/xds/XdsConfig.java index ee75992ba42..7af03caf4be 100644 --- a/xds/src/main/java/io/grpc/xds/XdsConfig.java +++ b/xds/src/main/java/io/grpc/xds/XdsConfig.java @@ -109,7 +109,7 @@ static final class XdsClusterConfig { XdsClusterConfig(String clusterName, CdsUpdate clusterResource, ClusterChild details) { this.clusterName = checkNotNull(clusterName, "clusterName"); this.clusterResource = checkNotNull(clusterResource, "clusterResource"); - this.children = details; + this.children = checkNotNull(details, "details"); } @Override @@ -152,8 +152,9 @@ public ClusterChild getChildren() { interface ClusterChild {} - // Endpoint info for EDS and LOGICAL_DNS clusters. If there was an - // error, endpoints will be null and resolution_note will be set. + /** Endpoint info for EDS and LOGICAL_DNS clusters. If there was an + * error, endpoints will be null and resolution_note will be set. + */ static final class EndpointConfig implements ClusterChild { private final StatusOr endpoint;