zhoulii commented on pull request #12849:
URL: https://github.com/apache/flink/pull/12849#issuecomment-655387112


   `final ClusterDescriptor<String> kubernetesClusterDescriptor =
                        
kubernetesClusterClientFactory.createClusterDescriptor(configuration);`
   
   above code will create **KubernetesClusterDescriptor**, and in 
[KubernetesClusterDescriptor construct 
method](https://github.com/apache/flink/blob/master/flink-kubernetes/src/main/java/org/apache/flink/kubernetes/KubernetesClusterDescriptor.java#L79)
 ,we already check the value of clusterId,  if clusterId value is null,a 
NullPointerException will be thrown.
   
   so, when execute code `if (clusterId != null && 
kubeClient.getRestService(clusterId).isPresent())` ,clusterId must not be null 
@KarmaGYZ 
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to