Program: 136481
Project: 136481
Buggy source:
/** 
 * DOC klliu Comment method "wapperInput". relations
 * @param indicatorTableList
 * @param parentNode
 * @return
 */
private List<OverviewIndUIElement> wapperInput(EList<TableIndicator> indicatorTableList,IRepositoryNode parentNode){
  List<OverviewIndUIElement> cataUIEleList=new ArrayList<OverviewIndUIElement>();
  List<IRepositoryNode> children=parentNode.getChildren();
  for (  IRepositoryNode folderNode : children) {
    if (folderNode instanceof DBTableFolderRepNode) {
      List<IRepositoryNode> tableNodes=folderNode.getChildren();
      for (      TableIndicator indicator : indicatorTableList) {
        boolean equals=false;
        for (        IRepositoryNode tableNode : tableNodes) {
          MetadataTable table=((MetadataTableRepositoryObject)tableNode.getObject()).getTable();
          String name=table.getName();
          String tableName=indicator.getTableName();
          equals=name.equals(tableName);
          if (equals) {
            OverviewIndUIElement tableUIEle=new OverviewIndUIElement();
            tableUIEle.setNode(tableNode);
            tableUIEle.setOverviewIndicator(indicator);
            try {
              if (DqRepositoryViewService.getColumns(getTdDataProvider(),(ColumnSet)table,true).isEmpty()) {
                tableUIEle.setVirtualNode(true);
              }
            }
 catch (            Exception e) {
              log.error(e,e);
            }
            cataUIEleList.add(tableUIEle);
            break;
          }
        }
        if (!equals) {
          OverviewIndUIElement tableUIEle=new OverviewIndUIElement();
          tableUIEle.setOverviewIndicator(indicator);
          tableUIEle.setVirtualNode(true);
          cataUIEleList.add(tableUIEle);
        }
      }
    }
  }
  return cataUIEleList;
}

Fixed version (ground truth):
/** 
 * DOC klliu Comment method "wapperInput". relations
 * @param indicatorTableList
 * @param parentNode
 * @return
 */
private List<OverviewIndUIElement> wapperInput(EList<TableIndicator> indicatorTableList,IRepositoryNode parentNode){
  List<OverviewIndUIElement> cataUIEleList=new ArrayList<OverviewIndUIElement>();
  List<IRepositoryNode> children=parentNode.getChildren();
  for (  IRepositoryNode folderNode : children) {
    if (folderNode instanceof DBTableFolderRepNode) {
      List<IRepositoryNode> tableNodes=folderNode.getChildren();
      for (      TableIndicator indicator : indicatorTableList) {
        boolean equals=false;
        for (        IRepositoryNode tableNode : tableNodes) {
          MetadataTable table=((MetadataTableRepositoryObject)tableNode.getObject()).getTable();
          String name=table.getName();
          String tableName=indicator.getTableName();
          equals=name.equals(tableName);
          if (equals) {
            OverviewIndUIElement tableUIEle=new OverviewIndUIElement();
            tableUIEle.setNode(tableNode);
            tableUIEle.setOverviewIndicator(indicator);
            if (DqRepositoryViewService.isComeFromRefrenceProject(getTdDataProvider()) && ColumnSetHelper.getColumns((ColumnSet)table).isEmpty()) {
              tableUIEle.setVirtualNode(true);
            }
            cataUIEleList.add(tableUIEle);
            break;
          }
        }
        if (!equals) {
          OverviewIndUIElement tableUIEle=new OverviewIndUIElement();
          tableUIEle.setOverviewIndicator(indicator);
          tableUIEle.setVirtualNode(true);
          cataUIEleList.add(tableUIEle);
        }
      }
    }
  }
  return cataUIEleList;
}