Program: 119455
Project: 119455
Buggy source:
private static void setConnectionParameter(DataNode connectionNode,IProcess process,String connectionUID,DataNode dataNode,List<DataNode> nodeList){
  if (connectionNode.getElementParameter(EParameterName.HOST.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.HOST.getName()).setValue(process.getElementParameter(EParameterName.HOST.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.PORT.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.PORT.getName()).setValue(process.getElementParameter(EParameterName.PORT.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.SCHEMA_DB.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.SCHEMA_DB.getName()).setValue(process.getElementParameter(EParameterName.SCHEMA_DB.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.SCHEMA_DB_ORACLE.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.SCHEMA_DB_ORACLE.getName()).setValue(process.getElementParameter(EParameterName.SCHEMA_JOB.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.SCHEMA_DB_DB2.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.SCHEMA_DB_DB2.getName()).setValue(process.getElementParameter(EParameterName.SCHEMA_JOB.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.SCHEMA_DB_MSSQL.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.SCHEMA_DB_MSSQL.getName()).setValue(process.getElementParameter(EParameterName.SCHEMA_JOB.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.DBNAME.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.DBNAME.getName()).setValue(process.getElementParameter(EParameterName.DBNAME.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.LOCAL_SERVICE_NAME.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.LOCAL_SERVICE_NAME.getName()).setValue(process.getElementParameter(EParameterName.LOCAL_SERVICE_NAME.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.URL.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.URL.getName()).setValue(process.getElementParameter(EParameterName.URL.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.DRIVER_JAR.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.DRIVER_JAR.getName()).setValue(process.getElementParameter(EParameterName.DRIVER_JAR.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.DRIVER_CLASS.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.DRIVER_CLASS.getName()).setValue(process.getElementParameter(EParameterName.DRIVER_CLASS.getName()).getValue());
  }
  IElementParameter elementParameter=connectionNode.getElementParameter("String_Node_Str");
  if (elementParameter != null) {
    String repositoryValue=elementParameter.getRepositoryValue();
    if ("String_Node_Str".equals(repositoryValue)) {
      if (connectionNode.getElementParameter(EParameterName.DBNAME.getName()) != null) {
        connectionNode.getElementParameter(EParameterName.DBNAME.getName()).setValue(process.getElementParameter(EParameterName.DBFILE.getName()).getValue());
      }
    }
  }
  if (connectionNode.getElementParameter(EParameterName.DB_VERSION.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.DB_VERSION.getName()).setValue(process.getElementParameter(EParameterName.DB_VERSION.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.PROPERTIES.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.PROPERTIES.getName()).setValue(process.getElementParameter(EParameterName.PROPERTIES.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.USER.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.USER.getName()).setValue(process.getElementParameter(EParameterName.USER.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.PASS.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.PASS.getName()).setValue(process.getElementParameter(EParameterName.PASS.getName()).getValue());
  }
}

Fixed version (ground truth):
private static void setConnectionParameter(DataNode connectionNode,IProcess process,String connectionUID,DataNode dataNode,List<DataNode> nodeList){
  if (connectionNode.getElementParameter(EParameterName.HOST.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.HOST.getName()).setValue(process.getElementParameter(EParameterName.HOST.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.PORT.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.PORT.getName()).setValue(process.getElementParameter(EParameterName.PORT.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.SCHEMA_DB.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.SCHEMA_DB.getName()).setValue(process.getElementParameter(EParameterName.SCHEMA_DB.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.SCHEMA_DB_ORACLE.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.SCHEMA_DB_ORACLE.getName()).setValue(process.getElementParameter(EParameterName.SCHEMA_JOB.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.SCHEMA_DB_DB2.getDisplayName()) != null) {
    connectionNode.getElementParameter(EParameterName.SCHEMA_DB_DB2.getDisplayName()).setValue(process.getElementParameter(EParameterName.SCHEMA_DB.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.SCHEMA_DB_MSSQL.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.SCHEMA_DB_MSSQL.getName()).setValue(process.getElementParameter(EParameterName.SCHEMA_JOB.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.DBNAME.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.DBNAME.getName()).setValue(process.getElementParameter(EParameterName.DBNAME.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.LOCAL_SERVICE_NAME.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.LOCAL_SERVICE_NAME.getName()).setValue(process.getElementParameter(EParameterName.LOCAL_SERVICE_NAME.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.URL.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.URL.getName()).setValue(process.getElementParameter(EParameterName.URL.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.DRIVER_JAR.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.DRIVER_JAR.getName()).setValue(process.getElementParameter(EParameterName.DRIVER_JAR.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.DRIVER_CLASS.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.DRIVER_CLASS.getName()).setValue(process.getElementParameter(EParameterName.DRIVER_CLASS.getName()).getValue());
  }
  IElementParameter elementParameter=connectionNode.getElementParameter("String_Node_Str");
  if (elementParameter != null) {
    String repositoryValue=elementParameter.getRepositoryValue();
    if ("String_Node_Str".equals(repositoryValue)) {
      if (connectionNode.getElementParameter(EParameterName.DBNAME.getName()) != null) {
        connectionNode.getElementParameter(EParameterName.DBNAME.getName()).setValue(process.getElementParameter(EParameterName.DBFILE.getName()).getValue());
      }
    }
  }
  if (connectionNode.getElementParameter(EParameterName.DB_VERSION.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.DB_VERSION.getName()).setValue(process.getElementParameter(EParameterName.DB_VERSION.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.PROPERTIES.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.PROPERTIES.getName()).setValue(process.getElementParameter(EParameterName.PROPERTIES.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.USER.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.USER.getName()).setValue(process.getElementParameter(EParameterName.USER.getName()).getValue());
  }
  if (connectionNode.getElementParameter(EParameterName.PASS.getName()) != null) {
    connectionNode.getElementParameter(EParameterName.PASS.getName()).setValue(process.getElementParameter(EParameterName.PASS.getName()).getValue());
  }
}