Program: 33472
Project: 33472
Buggy source:
public HttpClient build(){
  HttpClient httpClient=null;
  try {
    httpHost=new HttpHost(host,port,scheme);
    HttpClientBuilder builder=HttpClients.custom();
    RequestConfig.Builder requestConfigBuilder=RequestConfig.custom().setConnectTimeout(connectTimeout).setSocketTimeout(requestTimeout);
    if (!StringUtils.isEmpty(proxyHost)) {
      requestConfigBuilder.setProxy(new HttpHost(proxyHost,proxyPort));
    }
    builder.setDefaultRequestConfig(requestConfigBuilder.build());
    if (!StringUtils.isEmpty(user) && !StringUtils.isEmpty(password)) {
      CredentialsProvider credentialsProvider=new BasicCredentialsProvider();
      credentialsProvider.setCredentials(new AuthScope(AuthScope.ANY_HOST,AuthScope.ANY_PORT),new UsernamePasswordCredentials(user,password));
      builder.setDefaultCredentialsProvider(credentialsProvider);
    }
 else     if (StringUtils.isEmpty(user) && !StringUtils.isEmpty(password)) {
      logger.warn("String_Node_Str",user);
    }
 else     if (StringUtils.isEmpty(user) && !StringUtils.isEmpty(password)) {
      logger.warn("String_Node_Str");
    }
    if (bypassHostnameVerify) {
      builder.setSSLHostnameVerifier(NoopHostnameVerifier.INSTANCE);
    }
    SSLContextBuilder sslContextBuiilder=new SSLContextBuilder();
    sslContextBuiilder.loadTrustMaterial(new LenientStrategy());
    if (!StringUtils.isEmpty(pkiCredentials) && !StringUtils.isEmpty(pkiPassword)) {
      KeyStore ks=KeyStore.getInstance(KeyStore.getDefaultType());
      ks.load(new FileInputStream(pkiCredentials),pkiPassword.toCharArray());
      sslContextBuiilder.loadKeyMaterial(ks,pkiPassword.toCharArray());
    }
 else     if (StringUtils.isEmpty(pkiCredentials) && !StringUtils.isEmpty(pkiPassword)) {
      logger.warn("String_Node_Str",pkiCredentials);
    }
 else     if (StringUtils.isEmpty(pkiCredentials) && !StringUtils.isEmpty(pkiPassword)) {
      logger.warn("String_Node_Str");
    }
    builder.setSSLSocketFactory(new SSLConnectionSocketFactory(sslContextBuiilder.build()));
    httpClient=builder.build();
  }
 catch (  Exception e) {
    logger.error("String_Node_Str",e);
    throw new RuntimeException("String_Node_Str");
  }
  return httpClient;
}

Fixed version (ground truth):
public HttpClient build(){
  HttpClient httpClient=null;
  try {
    httpHost=new HttpHost(host,port,scheme);
    HttpClientBuilder builder=HttpClients.custom();
    RequestConfig.Builder requestConfigBuilder=RequestConfig.custom().setConnectTimeout(connectTimeout).setSocketTimeout(requestTimeout);
    if (!StringUtils.isEmpty(proxyHost)) {
      requestConfigBuilder.setProxy(new HttpHost(proxyHost,proxyPort));
    }
    builder.setDefaultRequestConfig(requestConfigBuilder.build());
    if (!StringUtils.isEmpty(user) && !StringUtils.isEmpty(password)) {
      CredentialsProvider credentialsProvider=new BasicCredentialsProvider();
      credentialsProvider.setCredentials(new AuthScope(AuthScope.ANY_HOST,AuthScope.ANY_PORT),new UsernamePasswordCredentials(user,password));
      builder.setDefaultCredentialsProvider(credentialsProvider);
    }
 else     if (StringUtils.isEmpty(user) && !StringUtils.isEmpty(password)) {
      logger.warn("String_Node_Str",user);
    }
 else     if (StringUtils.isEmpty(user) && !StringUtils.isEmpty(password)) {
      logger.warn("String_Node_Str");
    }
    if (bypassHostnameVerify) {
      builder.setSSLHostnameVerifier(new BypassHostnameVerifier());
    }
    SSLContextBuilder sslContextBuiilder=new SSLContextBuilder();
    sslContextBuiilder.loadTrustMaterial(new LenientStrategy());
    if (!StringUtils.isEmpty(pkiCredentials) && !StringUtils.isEmpty(pkiPassword)) {
      KeyStore ks=KeyStore.getInstance(KeyStore.getDefaultType());
      ks.load(new FileInputStream(pkiCredentials),pkiPassword.toCharArray());
      sslContextBuiilder.loadKeyMaterial(ks,pkiPassword.toCharArray());
    }
 else     if (StringUtils.isEmpty(pkiCredentials) && !StringUtils.isEmpty(pkiPassword)) {
      logger.warn("String_Node_Str",pkiCredentials);
    }
 else     if (StringUtils.isEmpty(pkiCredentials) && !StringUtils.isEmpty(pkiPassword)) {
      logger.warn("String_Node_Str");
    }
    builder.setSSLSocketFactory(new SSLConnectionSocketFactory(sslContextBuiilder.build(),new BypassHostnameVerifier()));
    httpClient=builder.build();
  }
 catch (  Exception e) {
    logger.error("String_Node_Str",e);
    throw new RuntimeException("String_Node_Str");
  }
  return httpClient;
}