Program: 111389
Project: 111389
Buggy source:
@Override public void init(DockerClientConfig dockerClientConfig){
  checkNotNull(dockerClientConfig,"String_Node_Str");
  this.dockerClientConfig=dockerClientConfig;
  ClientConfig clientConfig=new ClientConfig();
  clientConfig.connectorProvider(new ApacheConnectorProvider());
  clientConfig.property(CommonProperties.FEATURE_AUTO_DISCOVERY_DISABLE,true);
  clientConfig.register(ResponseStatusExceptionFilter.class);
  clientConfig.register(JsonClientFilter.class);
  clientConfig.register(JacksonJsonProvider.class);
  clientConfig.register(new SelectiveLoggingFilter(LOGGER,true));
  if (readTimeout != null) {
    clientConfig.property(ClientProperties.READ_TIMEOUT,readTimeout);
  }
  if (connectTimeout != null) {
    clientConfig.property(ClientProperties.CONNECT_TIMEOUT,connectTimeout);
  }
  if (clientResponseFilters != null) {
    for (    ClientResponseFilter clientResponseFilter : clientResponseFilters) {
      if (clientResponseFilter != null)       clientConfig.register(clientResponseFilter);
    }
  }
  if (clientRequestFilters != null) {
    for (    ClientRequestFilter clientRequestFilter : clientRequestFilters) {
      if (clientRequestFilter != null)       clientConfig.register(clientRequestFilter);
    }
  }
  URI originalUri=dockerClientConfig.getUri();
  SSLContext sslContext=null;
  if (dockerClientConfig.getSslConfig() != null) {
    configureProxy(clientConfig,"String_Node_Str");
    try {
      sslContext=dockerClientConfig.getSslConfig().getSSLContext();
    }
 catch (    Exception ex) {
      throw new DockerClientException("String_Node_Str",ex);
    }
  }
 else {
    configureProxy(clientConfig,"String_Node_Str");
  }
  PoolingHttpClientConnectionManager connManager=new PoolingHttpClientConnectionManager(getSchemeRegistry(originalUri,sslContext));
  if (maxTotalConnections != null)   connManager.setMaxTotal(maxTotalConnections);
  if (maxPerRouteConnections != null)   connManager.setDefaultMaxPerRoute(maxPerRouteConnections);
  clientConfig.property(ApacheClientProperties.CONNECTION_MANAGER,connManager);
  ClientBuilder clientBuilder=ClientBuilder.newBuilder().withConfig(clientConfig);
  if (sslContext != null) {
    clientBuilder.sslContext(sslContext);
  }
  client=clientBuilder.build();
  if (originalUri.getScheme().equals("String_Node_Str")) {
    dockerClientConfig.setUri(UnixConnectionSocketFactory.sanitizeUri(originalUri));
  }
  baseResource=client.target(dockerClientConfig.getUri()).path(dockerClientConfig.getVersion().asWebPathPart());
}

Fixed version (ground truth):
@Override public void init(DockerClientConfig dockerClientConfig){
  checkNotNull(dockerClientConfig,"String_Node_Str");
  this.dockerClientConfig=dockerClientConfig;
  ClientConfig clientConfig=new ClientConfig();
  clientConfig.connectorProvider(new ApacheConnectorProvider());
  clientConfig.property(CommonProperties.FEATURE_AUTO_DISCOVERY_DISABLE,true);
  clientConfig.register(ResponseStatusExceptionFilter.class);
  clientConfig.register(JsonClientFilter.class);
  clientConfig.register(JacksonJsonProvider.class);
  clientConfig.register(new SelectiveLoggingFilter(LOGGER,true));
  if (readTimeout != null) {
    clientConfig.property(ClientProperties.READ_TIMEOUT,readTimeout);
  }
  if (connectTimeout != null) {
    clientConfig.property(ClientProperties.CONNECT_TIMEOUT,connectTimeout);
  }
  if (clientResponseFilters != null) {
    for (    ClientResponseFilter clientResponseFilter : clientResponseFilters) {
      if (clientResponseFilter != null)       clientConfig.register(clientResponseFilter);
    }
  }
  if (clientRequestFilters != null) {
    for (    ClientRequestFilter clientRequestFilter : clientRequestFilters) {
      if (clientRequestFilter != null)       clientConfig.register(clientRequestFilter);
    }
  }
  URI originalUri=dockerClientConfig.getUri();
  SSLContext sslContext=null;
  String protocol=null;
  if (dockerClientConfig.getSslConfig() != null) {
    protocol="String_Node_Str";
    try {
      sslContext=dockerClientConfig.getSslConfig().getSSLContext();
    }
 catch (    Exception ex) {
      throw new DockerClientException("String_Node_Str",ex);
    }
  }
 else {
    protocol="String_Node_Str";
  }
  if (originalUri.getScheme().equals("String_Node_Str")) {
    dockerClientConfig.setUri(UnixConnectionSocketFactory.sanitizeUri(originalUri));
  }
 else {
    configureProxy(clientConfig,protocol);
  }
  PoolingHttpClientConnectionManager connManager=new PoolingHttpClientConnectionManager(getSchemeRegistry(originalUri,sslContext));
  if (maxTotalConnections != null)   connManager.setMaxTotal(maxTotalConnections);
  if (maxPerRouteConnections != null)   connManager.setDefaultMaxPerRoute(maxPerRouteConnections);
  clientConfig.property(ApacheClientProperties.CONNECTION_MANAGER,connManager);
  ClientBuilder clientBuilder=ClientBuilder.newBuilder().withConfig(clientConfig);
  if (sslContext != null) {
    clientBuilder.sslContext(sslContext);
  }
  client=clientBuilder.build();
  baseResource=client.target(dockerClientConfig.getUri()).path(dockerClientConfig.getVersion().asWebPathPart());
}