Program: 45824
Project: 45824
Buggy source:
private void addManCenterInfo(Node hazelcastNode,int clusterSize,PhoneHomeParameterCreator parameterCreator){
  InputStreamReader reader=null;
  InputStream inputStream=null;
  int responseCode;
  String version;
  String license;
  try {
    ManagementCenterConfig managementCenterConfig=hazelcastNode.config.getManagementCenterConfig();
    String manCenterURL=managementCenterConfig.getUrl();
    manCenterURL=manCenterURL.endsWith("String_Node_Str") ? manCenterURL : manCenterURL + '/';
    URL manCenterPhoneHomeURL=new URL(manCenterURL + "String_Node_Str");
    ManagementCenterConnectionFactory connectionFactory=hazelcastNode.getNodeExtension().getManagementCenterConnectionFactory();
    HttpURLConnection connection;
    if (connectionFactory != null) {
      connectionFactory.init(managementCenterConfig.getMutualAuthConfig());
      connection=(HttpURLConnection)connectionFactory.openConnection(manCenterPhoneHomeURL);
    }
 else {
      connection=(HttpURLConnection)manCenterPhoneHomeURL.openConnection();
    }
    connection.setConnectTimeout(CONNECTION_TIMEOUT_MILLIS);
    connection.setReadTimeout(CONNECTION_TIMEOUT_MILLIS);
    inputStream=connection.getInputStream();
    responseCode=connection.getResponseCode();
    reader=new InputStreamReader(inputStream,"String_Node_Str");
    JsonObject mcPhoneHomeInfoJson=JsonValue.readFrom(reader).asObject();
    version=JsonUtil.getString(mcPhoneHomeInfoJson,"String_Node_Str");
    license=JsonUtil.getString(mcPhoneHomeInfoJson,"String_Node_Str",null);
  }
 catch (  Exception ignored) {
    parameterCreator.addParam("String_Node_Str","String_Node_Str");
    parameterCreator.addParam("String_Node_Str","String_Node_Str");
    return;
  }
 finally {
    closeResource(reader);
    closeResource(inputStream);
  }
  if (responseCode == HttpURLConnection.HTTP_OK) {
    if (license == null) {
      checkClusterSizeAndSetLicense(clusterSize,parameterCreator);
    }
 else {
      parameterCreator.addParam("String_Node_Str",license);
    }
    parameterCreator.addParam("String_Node_Str",version);
  }
 else {
    parameterCreator.addParam("String_Node_Str","String_Node_Str" + responseCode);
    parameterCreator.addParam("String_Node_Str","String_Node_Str" + responseCode);
  }
}

Fixed version (ground truth):
private void addManCenterInfo(Node hazelcastNode,int clusterSize,PhoneHomeParameterCreator parameterCreator){
  int responseCode;
  String version;
  String license;
  InputStream inputStream=null;
  InputStreamReader reader=null;
  try {
    ManagementCenterConfig managementCenterConfig=hazelcastNode.config.getManagementCenterConfig();
    String manCenterURL=managementCenterConfig.getUrl();
    manCenterURL=manCenterURL.endsWith("String_Node_Str") ? manCenterURL : manCenterURL + '/';
    URL manCenterPhoneHomeURL=new URL(manCenterURL + "String_Node_Str");
    ManagementCenterConnectionFactory connectionFactory=hazelcastNode.getNodeExtension().getManagementCenterConnectionFactory();
    HttpURLConnection connection;
    if (connectionFactory != null) {
      connectionFactory.init(managementCenterConfig.getMutualAuthConfig());
      connection=(HttpURLConnection)connectionFactory.openConnection(manCenterPhoneHomeURL);
    }
 else {
      connection=(HttpURLConnection)manCenterPhoneHomeURL.openConnection();
    }
    connection.setConnectTimeout(CONNECTION_TIMEOUT_MILLIS);
    connection.setReadTimeout(CONNECTION_TIMEOUT_MILLIS);
    inputStream=connection.getInputStream();
    responseCode=connection.getResponseCode();
    reader=new InputStreamReader(inputStream,"String_Node_Str");
    JsonObject mcPhoneHomeInfoJson=Json.parse(reader).asObject();
    version=getString(mcPhoneHomeInfoJson,"String_Node_Str");
    license=getString(mcPhoneHomeInfoJson,"String_Node_Str",null);
  }
 catch (  Exception ignored) {
    ignore(ignored);
    parameterCreator.addParam("String_Node_Str","String_Node_Str");
    parameterCreator.addParam("String_Node_Str","String_Node_Str");
    return;
  }
 finally {
    closeResource(reader);
    closeResource(inputStream);
  }
  if (responseCode == HttpURLConnection.HTTP_OK) {
    if (license == null) {
      checkClusterSizeAndSetLicense(clusterSize,parameterCreator);
    }
 else {
      parameterCreator.addParam("String_Node_Str",license);
    }
    parameterCreator.addParam("String_Node_Str",version);
  }
 else {
    parameterCreator.addParam("String_Node_Str","String_Node_Str" + responseCode);
    parameterCreator.addParam("String_Node_Str","String_Node_Str" + responseCode);
  }
}