Program: 115100
Project: 115100
Buggy source:
public void verifyParentID(ArrayList<SpreadSheetItemUtil> row_items,ArrayList<String> ver_errors,HashMap<String,String> htmlErrors,int sheetNumber,ResourceBundle resPageMsg,HashMap<String,ItemGroupBean> itemGroups){
  int row_number=row_items.size();
  if (this.getItemName() != null && this.getItemName().equalsIgnoreCase(this.getParentItem())) {
    this.setParentItem("String_Node_Str");
  }
  if (!StringUtil.isBlank(this.getParentItem())) {
    SpreadSheetItemUtil cur_item=SpreadSheetItemUtil.isItemWithSameParameterExists(CrfTemplateColumnNameEnum.ITEM_NAME,this.getParentItem(),row_items);
    if (cur_item == null) {
      ver_errors.add(resPageMsg.getString("String_Node_Str") + row_number + resPageMsg.getString("String_Node_Str"));
      htmlErrors.put(sheetNumber + "String_Node_Str" + row_number+ "String_Node_Str"+ CrfTemplateColumnNameEnum.PARENT_ITEM.getCellNumber(),resPageMsg.getString("String_Node_Str"));
    }
    if (cur_item != null && cur_item.getParentItem() != null && cur_item.getParentItem().length() > 0) {
      ver_errors.add(resPageMsg.getString("String_Node_Str") + row_items.size() + resPageMsg.getString("String_Node_Str"));
      htmlErrors.put(sheetNumber + "String_Node_Str" + row_number+ "String_Node_Str"+ CrfTemplateColumnNameEnum.PARENT_ITEM.getCellNumber(),resPageMsg.getString("String_Node_Str"));
    }
    if (itemGroups != null && itemGroups.size() > 0) {
      ItemGroupBean item_group=itemGroups.get(this.getGroupLabel());
      if (item_group != null) {
        boolean isRepeatingGroup=item_group.getMeta().isRepeatingGroup();
        if (isRepeatingGroup) {
          if (this.getGroupLabel() != null && this.getGroupLabel().length() > 0) {
            ver_errors.add(resPageMsg.getString("String_Node_Str") + row_items.size() + resPageMsg.getString("String_Node_Str"));
            htmlErrors.put(sheetNumber + "String_Node_Str" + row_number+ "String_Node_Str"+ CrfTemplateColumnNameEnum.PARENT_ITEM.getCellNumber(),resPageMsg.getString("String_Node_Str"));
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
public void verifyParentID(ArrayList<SpreadSheetItemUtil> row_items,ArrayList<String> ver_errors,HashMap<String,String> htmlErrors,int sheetNumber,ResourceBundle resPageMsg,HashMap<String,ItemGroupBean> itemGroups){
  int row_number=row_items.size();
  if (this.getItemName().equalsIgnoreCase(this.getParentItem())) {
    this.setParentItem("String_Node_Str");
  }
  if (!this.getParentItem().isEmpty()) {
    SpreadSheetItemUtil cur_item=SpreadSheetItemUtil.isItemWithSameParameterExists(CrfTemplateColumnNameEnum.ITEM_NAME,this.getParentItem(),row_items);
    if (cur_item == null) {
      ver_errors.add(resPageMsg.getString("String_Node_Str") + row_number + resPageMsg.getString("String_Node_Str"));
      htmlErrors.put(sheetNumber + "String_Node_Str" + row_number+ "String_Node_Str"+ CrfTemplateColumnNameEnum.PARENT_ITEM.getCellNumber(),resPageMsg.getString("String_Node_Str"));
    }
    if (cur_item != null && cur_item.getParentItem() != null && cur_item.getParentItem().length() > 0) {
      ver_errors.add(resPageMsg.getString("String_Node_Str") + row_items.size() + resPageMsg.getString("String_Node_Str"));
      htmlErrors.put(sheetNumber + "String_Node_Str" + row_number+ "String_Node_Str"+ CrfTemplateColumnNameEnum.PARENT_ITEM.getCellNumber(),resPageMsg.getString("String_Node_Str"));
    }
    if (itemGroups != null && itemGroups.size() > 0) {
      ItemGroupBean item_group=itemGroups.get(this.getGroupLabel());
      if (item_group != null) {
        boolean isRepeatingGroup=item_group.getMeta().isRepeatingGroup();
        if (isRepeatingGroup) {
          if (this.getParentItem().length() > 0) {
            ver_errors.add(resPageMsg.getString("String_Node_Str") + row_items.size() + resPageMsg.getString("String_Node_Str"));
            htmlErrors.put(sheetNumber + "String_Node_Str" + row_number+ "String_Node_Str"+ CrfTemplateColumnNameEnum.PARENT_ITEM.getCellNumber(),resPageMsg.getString("String_Node_Str"));
          }
        }
      }
    }
  }
}