Program: 136864
Project: 136864
Buggy source:
/** 
 * this folder path is: hadoop/hdfs, its parent's path is: hadoop/hadoopcluster
 */
@Override public List<IRepositoryNode> getChildren(boolean withDeleted){
  List<IRepositoryNode> children=new ArrayList<IRepositoryNode>();
  IPath path=getPathOfHDFSFolder();
  Item clusterConnectionItem=getParent().getObject().getProperty().getItem();
  String clusterId=clusterConnectionItem.getProperty().getId();
  try {
    RootContainer<String,IRepositoryViewObject> tdqViewObjects=ProxyRepositoryFactory.getInstance().getTdqRepositoryViewObjects(HDFSRepositoryNodeType.HDFS,path.toString());
    for (    IRepositoryViewObject viewObject : tdqViewObjects.getMembers()) {
      if (!withDeleted && viewObject.isDeleted()) {
        continue;
      }
      HDFSOfHCConnectionNode repNode=null;
      if (viewObject != null && viewObject.getProperty() != null) {
        HDFSConnectionItem dbItem=(HDFSConnectionItem)viewObject.getProperty().getItem();
        HDFSConnection dbConnection=(HDFSConnection)dbItem.getConnection();
        String hcId=dbConnection.getRelativeHadoopClusterId();
        if (!StringUtils.equals(clusterId,hcId)) {
          continue;
        }
      }
      try {
        repNode=new HDFSOfHCConnectionNode(viewObject,this,ENodeType.REPOSITORY_ELEMENT);
      }
 catch (      Exception e) {
        log.error(e,e);
        continue;
      }
      repNode.setProperties(EProperties.LABEL,viewObject.getLabel());
      repNode.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.METADATA_CONNECTIONS);
      viewObject.setRepositoryNode(repNode);
      children.add(repNode);
    }
  }
 catch (  PersistenceException e) {
    log.error(e,e);
  }
  return children;
}

Fixed version (ground truth):
/** 
 * this folder path is: hadoop/hdfs, its parent's path is: hadoop/hadoopcluster
 */
@Override public List<IRepositoryNode> getChildren(boolean withDeleted){
  List<IRepositoryNode> children=new ArrayList<IRepositoryNode>();
  IPath path=getPathOfHDFSFolder();
  Item clusterConnectionItem=getParent().getObject().getProperty().getItem();
  String clusterId=clusterConnectionItem.getProperty().getId();
  try {
    RootContainer<String,IRepositoryViewObject> tdqViewObjects=ProxyRepositoryFactory.getInstance().getTdqRepositoryViewObjects(HDFSRepositoryNodeType.HDFS,path.toString());
    for (    IRepositoryViewObject viewObject : tdqViewObjects.getMembers()) {
      if (!withDeleted && viewObject.isDeleted()) {
        continue;
      }
      HDFSOfHCConnectionNode repNode=null;
      if (viewObject != null && viewObject.getProperty() != null) {
        HDFSConnectionItem dbItem=(HDFSConnectionItem)viewObject.getProperty().getItem();
        HDFSConnection dbConnection=(HDFSConnection)dbItem.getConnection();
        String hcId=dbConnection.getRelativeHadoopClusterId();
        if (!StringUtils.equals(clusterId,hcId)) {
          continue;
        }
      }
      try {
        repNode=new HDFSOfHCConnectionNode(viewObject,this,ENodeType.REPOSITORY_ELEMENT,getProject());
      }
 catch (      Exception e) {
        log.error(e,e);
        continue;
      }
      repNode.setProperties(EProperties.LABEL,viewObject.getLabel());
      repNode.setProperties(EProperties.CONTENT_TYPE,ERepositoryObjectType.METADATA_CONNECTIONS);
      viewObject.setRepositoryNode(repNode);
      children.add(repNode);
    }
  }
 catch (  PersistenceException e) {
    log.error(e,e);
  }
  return children;
}