Program: 121867
Project: 121867
Buggy source:
private void moveValuesFromHiveMap2HiveConn(NodeType tHiveMapNode,NodeType tHiveConnNode){
  if (tHiveMapNode == null || tHiveConnNode == null) {
    return;
  }
  ElementParameterType setMapredJt=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  ElementParameterType mapredJt=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  if ((setMapredJt != null && "String_Node_Str".equalsIgnoreCase(setMapredJt.getValue())) && mapredJt != null) {
    ElementParameterType setMapredJt2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
    ElementParameterType mapredJt2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
    if (setMapredJt2 == null) {
      ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
    }
    ComponentUtilities.setNodeValue(tHiveConnNode,"String_Node_Str","String_Node_Str");
    if (mapredJt2 == null) {
      ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
    }
    ComponentUtilities.setNodeValue(tHiveConnNode,"String_Node_Str",mapredJt.getValue());
  }
  ElementParameterType setFsDefaultName=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  ElementParameterType fsDefaultName=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  if ((setFsDefaultName != null && "String_Node_Str".equalsIgnoreCase(setFsDefaultName.getValue())) && fsDefaultName != null) {
    ElementParameterType setFsDefaultName2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
    ElementParameterType fsDefaultName2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
    if (setFsDefaultName2 == null) {
      ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
    }
    ComponentUtilities.setNodeValue(tHiveConnNode,"String_Node_Str","String_Node_Str");
    if (fsDefaultName2 == null) {
      ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
    }
    ComponentUtilities.setNodeValue(tHiveConnNode,"String_Node_Str",fsDefaultName.getValue());
  }
  ElementParameterType hadoopAdvancedPropertiesParam=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  if (hadoopAdvancedPropertiesParam != null) {
    EList<ElementValueType> hadoopAdvancedProperties=hadoopAdvancedPropertiesParam.getElementValue();
    ElementValueType columnNamePropertyElement=null;
    ElementValueType columnNameValueElement=null;
    if (hadoopAdvancedProperties != null && hadoopAdvancedProperties.size() > 0) {
      ElementParameterType hadoopAdvancedPropertiesParam2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
      if (hadoopAdvancedPropertiesParam2 == null) {
        ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
        hadoopAdvancedPropertiesParam2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
      }
      for (int i=0; i < hadoopAdvancedProperties.size(); i=i + 2) {
        columnNamePropertyElement=TalendFileFactory.eINSTANCE.createElementValueType();
        columnNamePropertyElement.setElementRef("String_Node_Str");
        columnNamePropertyElement.setValue(hadoopAdvancedProperties.get(i).getValue());
        hadoopAdvancedPropertiesParam2.getElementValue().add(columnNamePropertyElement);
        columnNameValueElement=TalendFileFactory.eINSTANCE.createElementValueType();
        columnNameValueElement.setElementRef("String_Node_Str");
        columnNameValueElement.setValue(hadoopAdvancedProperties.get(i + 1).getValue());
        hadoopAdvancedPropertiesParam2.getElementValue().add(columnNamePropertyElement);
      }
    }
  }
}

Fixed version (ground truth):
private void moveValuesFromHiveMap2HiveConn(NodeType tHiveMapNode,NodeType tHiveConnNode){
  if (tHiveMapNode == null || tHiveConnNode == null) {
    return;
  }
  ElementParameterType setMapredJt=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  ElementParameterType mapredJt=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  if ((setMapredJt != null && "String_Node_Str".equalsIgnoreCase(setMapredJt.getValue())) && mapredJt != null) {
    ElementParameterType setMapredJt2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
    ElementParameterType mapredJt2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
    if (setMapredJt2 == null) {
      ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
    }
    ComponentUtilities.setNodeValue(tHiveConnNode,"String_Node_Str","String_Node_Str");
    if (mapredJt2 == null) {
      ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
    }
    ComponentUtilities.setNodeValue(tHiveConnNode,"String_Node_Str",mapredJt.getValue());
  }
  ElementParameterType setFsDefaultName=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  ElementParameterType fsDefaultName=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  if ((setFsDefaultName != null && "String_Node_Str".equalsIgnoreCase(setFsDefaultName.getValue())) && fsDefaultName != null) {
    ElementParameterType setFsDefaultName2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
    ElementParameterType fsDefaultName2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
    if (setFsDefaultName2 == null) {
      ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
    }
    ComponentUtilities.setNodeValue(tHiveConnNode,"String_Node_Str","String_Node_Str");
    if (fsDefaultName2 == null) {
      ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
    }
    ComponentUtilities.setNodeValue(tHiveConnNode,"String_Node_Str",fsDefaultName.getValue());
  }
  ElementParameterType hadoopAdvancedPropertiesParam=ComponentUtilities.getNodeProperty(tHiveMapNode,"String_Node_Str");
  if (hadoopAdvancedPropertiesParam != null) {
    EList<ElementValueType> hadoopAdvancedProperties=hadoopAdvancedPropertiesParam.getElementValue();
    ElementValueType columnNamePropertyElement=null;
    ElementValueType columnNameValueElement=null;
    if (hadoopAdvancedProperties != null && hadoopAdvancedProperties.size() > 0) {
      ElementParameterType hadoopAdvancedPropertiesParam2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
      if (hadoopAdvancedPropertiesParam2 == null) {
        ComponentUtilities.addNodeProperty(tHiveConnNode,"String_Node_Str","String_Node_Str");
        hadoopAdvancedPropertiesParam2=ComponentUtilities.getNodeProperty(tHiveConnNode,"String_Node_Str");
      }
      for (int i=0; i < hadoopAdvancedProperties.size(); i=i + 2) {
        columnNamePropertyElement=TalendFileFactory.eINSTANCE.createElementValueType();
        columnNamePropertyElement.setElementRef("String_Node_Str");
        columnNamePropertyElement.setValue(hadoopAdvancedProperties.get(i).getValue());
        hadoopAdvancedPropertiesParam2.getElementValue().add(columnNamePropertyElement);
        columnNameValueElement=TalendFileFactory.eINSTANCE.createElementValueType();
        columnNameValueElement.setElementRef("String_Node_Str");
        columnNameValueElement.setValue(hadoopAdvancedProperties.get(i + 1).getValue());
        hadoopAdvancedPropertiesParam2.getElementValue().add(columnNameValueElement);
      }
    }
  }
}