Program: 32861
Project: 32861
Buggy source:
/** 
 * Load configure from "propertyPath" in classpath, if exists.
 * @param propertyPath
 */
public void loadProperties(String propertyPath){
  InputStream in=null;
  try {
    in=getClass().getResourceAsStream(propertyPath);
    if (in != null) {
      logger.debug("String_Node_Str",propertyPath);
      Properties prop=new Properties();
      prop.load(in);
      String port=prop.getProperty("String_Node_Str");
      if (port != null) {
        arangoHosts.get(0).setPort(Integer.parseInt(port));
      }
      String host=prop.getProperty("String_Node_Str");
      if (host != null) {
        arangoHosts.get(0).setHost(host);
      }
      String arangoHost=prop.getProperty("String_Node_Str");
      if (arangoHost != null) {
        ArangoHost ah=parseArangoHost(arangoHost);
        if (ah != null) {
          arangoHosts.get(0).setHost(ah.getHost());
          arangoHosts.get(0).setPort(ah.getPort());
        }
      }
      String fallbackArangoHost=prop.getProperty("String_Node_Str");
      if (fallbackArangoHost != null) {
        ArangoHost ah=parseArangoHost(fallbackArangoHost);
        if (ah != null) {
          addFallbackArangoHost(ah);
        }
      }
      String timeout=prop.getProperty("String_Node_Str");
      if (timeout != null) {
        setTimeout(Integer.parseInt(timeout));
      }
      String connectionTimeout=prop.getProperty("String_Node_Str");
      if (connectionTimeout != null) {
        setConnectionTimeout(Integer.parseInt(connectionTimeout));
      }
      String proxyHost=prop.getProperty("String_Node_Str");
      if (proxyHost != null) {
        setProxyHost(proxyHost);
      }
      String proxyPort=prop.getProperty("String_Node_Str");
      if (proxyPort != null) {
        setProxyPort(Integer.parseInt(proxyPort));
      }
      String maxPerConnection=prop.getProperty("String_Node_Str");
      if (maxPerConnection != null) {
        setMaxPerConnection(Integer.parseInt(maxPerConnection));
      }
      String maxTotalConnection=prop.getProperty("String_Node_Str");
      if (maxTotalConnection != null) {
        setMaxTotalConnection(Integer.parseInt(maxTotalConnection));
      }
      String retryCount=prop.getProperty("String_Node_Str");
      if (retryCount != null) {
        setRetryCount(Integer.parseInt(retryCount));
      }
      String connnectRetryCount=prop.getProperty("String_Node_Str");
      if (connnectRetryCount != null) {
        setConnectRetryCount(Integer.parseInt(connnectRetryCount));
      }
      String connectRetryWait=prop.getProperty("String_Node_Str");
      if (connectRetryWait != null) {
        setConnectRetryWait(Integer.parseInt(connectRetryWait));
      }
      String user=prop.getProperty("String_Node_Str");
      if (user != null) {
        setUser(user);
      }
      String password=prop.getProperty("String_Node_Str");
      if (password != null) {
        setPassword(password);
      }
      String defaultDatabase=prop.getProperty("String_Node_Str");
      if (defaultDatabase != null) {
        setDefaultDatabase(defaultDatabase);
      }
      String enableCURLLogger=prop.getProperty("String_Node_Str");
      if (enableCURLLogger != null) {
        setEnableCURLLogger(Boolean.parseBoolean(enableCURLLogger));
      }
      String staleConnectionCheck=prop.getProperty("String_Node_Str");
      if (staleConnectionCheck != null) {
        setStaleConnectionCheck(Boolean.parseBoolean(staleConnectionCheck));
      }
      String batchSize=prop.getProperty("String_Node_Str");
      if (batchSize != null) {
        setBatchSize(Integer.parseInt(batchSize));
      }
      String useSsl=prop.getProperty("String_Node_Str");
      if (useSsl != null) {
        setUseSsl(Boolean.parseBoolean(useSsl));
      }
      String sslTrustStore=prop.getProperty("String_Node_Str");
      if (sslTrustStore != null) {
        setSslTrustStore(sslTrustStore);
      }
    }
  }
 catch (  IOException e) {
    logger.warn("String_Node_Str",e);
  }
 finally {
    if (in != null) {
      IOUtils.close(in);
    }
  }
}

Fixed version (ground truth):
private void loadProperties(InputStream in) throws IOException {
  Properties prop=new Properties();
  prop.load(in);
  String port=prop.getProperty("String_Node_Str");
  if (port != null) {
    arangoHosts.get(0).setPort(Integer.parseInt(port));
  }
  String host=prop.getProperty("String_Node_Str");
  if (host != null) {
    arangoHosts.get(0).setHost(host);
  }
  String arangoHost=prop.getProperty("String_Node_Str");
  if (arangoHost != null) {
    ArangoHost ah=parseArangoHost(arangoHost);
    if (ah != null) {
      arangoHosts.get(0).setHost(ah.getHost());
      arangoHosts.get(0).setPort(ah.getPort());
    }
  }
  String fallbackArangoHost=prop.getProperty("String_Node_Str");
  if (fallbackArangoHost != null) {
    ArangoHost ah=parseArangoHost(fallbackArangoHost);
    if (ah != null) {
      addFallbackArangoHost(ah);
    }
  }
  String timeoutProperty=prop.getProperty("String_Node_Str");
  if (timeoutProperty != null) {
    setTimeout(Integer.parseInt(timeoutProperty));
  }
  String connectionTimeoutProperty=prop.getProperty("String_Node_Str");
  if (connectionTimeoutProperty != null) {
    setConnectionTimeout(Integer.parseInt(connectionTimeoutProperty));
  }
  String proxyHostProperty=prop.getProperty("String_Node_Str");
  if (proxyHostProperty != null) {
    setProxyHost(proxyHostProperty);
  }
  String proxyPortProperty=prop.getProperty("String_Node_Str");
  if (proxyPortProperty != null) {
    setProxyPort(Integer.parseInt(proxyPortProperty));
  }
  String maxPerConnectionProperty=prop.getProperty("String_Node_Str");
  if (maxPerConnectionProperty != null) {
    setMaxPerConnection(Integer.parseInt(maxPerConnectionProperty));
  }
  String maxTotalConnectionProperty=prop.getProperty("String_Node_Str");
  if (maxTotalConnectionProperty != null) {
    setMaxTotalConnection(Integer.parseInt(maxTotalConnectionProperty));
  }
  String retryCountProperty=prop.getProperty("String_Node_Str");
  if (retryCountProperty != null) {
    setRetryCount(Integer.parseInt(retryCountProperty));
  }
  String connnectRetryCount=prop.getProperty("String_Node_Str");
  if (connnectRetryCount != null) {
    setConnectRetryCount(Integer.parseInt(connnectRetryCount));
  }
  String connectRetryWaitProperty=prop.getProperty("String_Node_Str");
  if (connectRetryWaitProperty != null) {
    setConnectRetryWait(Integer.parseInt(connectRetryWaitProperty));
  }
  String userProperty=prop.getProperty("String_Node_Str");
  if (userProperty != null) {
    setUser(userProperty);
  }
  String passwordProperty=prop.getProperty("String_Node_Str");
  if (passwordProperty != null) {
    setPassword(passwordProperty);
  }
  String defaultDatabaseProperty=prop.getProperty("String_Node_Str");
  if (defaultDatabaseProperty != null) {
    setDefaultDatabase(defaultDatabaseProperty);
  }
  String enableCURLLoggerProperty=prop.getProperty("String_Node_Str");
  if (enableCURLLoggerProperty != null) {
    setEnableCURLLogger(Boolean.parseBoolean(enableCURLLoggerProperty));
  }
  String staleConnectionCheckProperty=prop.getProperty("String_Node_Str");
  if (staleConnectionCheckProperty != null) {
    setStaleConnectionCheck(Boolean.parseBoolean(staleConnectionCheckProperty));
  }
  String batchSizeProperty=prop.getProperty("String_Node_Str");
  if (batchSizeProperty != null) {
    setBatchSize(Integer.parseInt(batchSizeProperty));
  }
  String useSslProperty=prop.getProperty("String_Node_Str");
  if (useSslProperty != null) {
    setUseSsl(Boolean.parseBoolean(useSslProperty));
  }
  String sslTrustStoreProperty=prop.getProperty("String_Node_Str");
  if (sslTrustStoreProperty != null) {
    setSslTrustStore(sslTrustStoreProperty);
  }
}