Program: 117937
Project: 117937
Buggy source:
private void getAppropriateComponent(Item item,boolean quickCreateInput,boolean quickCreateOutput,TempStore store,ERepositoryObjectType type){
  IComponentName rcSetting=RepositoryComponentManager.getSetting(item,type);
  if (rcSetting == null) {
    for (    IDragAndDropServiceHandler handler : DragAndDropManager.getHandlers()) {
      rcSetting=handler.getCorrespondingComponentName(item,type);
      if (rcSetting != null) {
        break;
      }
    }
    if (rcSetting == null) {
      return;
    }
  }
  boolean isCurrentProject=true;
  String projectName=null;
  if (store.seletetedNode.getObject() != null) {
    projectName=store.seletetedNode.getObject().getProjectLabel();
    isCurrentProject=projectName.equals(ProjectManager.getInstance().getCurrentProject().getLabel());
  }
  List<IComponent> neededComponents=RepositoryComponentManager.filterNeededComponents(item,store.seletetedNode,type,isCurrentProject,projectName);
  for (  IDragAndDropServiceHandler handler : DragAndDropManager.getHandlers()) {
    List<IComponent> comList=handler.filterNeededComponents(item,store.seletetedNode,type);
    if (comList != null) {
      for (      IComponent handlerComp : comList) {
        if (!neededComponents.contains(handlerComp) && !handlerComp.isTechnical()) {
          neededComponents.add(handlerComp);
        }
      }
    }
  }
  String hbaseName=EDatabaseTypeName.HBASE.getDisplayName().toUpperCase();
  if (rcSetting != null && (hbaseName).equals(rcSetting.toString())) {
    IComponentsService service=(IComponentsService)GlobalServiceRegister.getDefault().getService(IComponentsService.class);
    String componentProductname=null;
    Set<IComponent> components=service.getComponentsFactory().getComponents();
    for (    IComponent component : components) {
      componentProductname=component.getRepositoryType();
      if (componentProductname != null && componentProductname.contains(hbaseName) && !neededComponents.contains(component) && !component.isTechnical()) {
        neededComponents.add(component);
      }
    }
  }
  neededComponents=(List<IComponent>)ComponentUtilities.filterVisibleComponents(neededComponents);
  IComponent component=chooseOneComponent(extractComponents(neededComponents),rcSetting,quickCreateInput,quickCreateOutput);
  store.component=component;
  store.componentName=rcSetting;
}

Fixed version (ground truth):
private void getAppropriateComponent(Item item,boolean quickCreateInput,boolean quickCreateOutput,TempStore store,ERepositoryObjectType type){
  IComponentName rcSetting=RepositoryComponentManager.getSetting(item,type);
  if (rcSetting == null) {
    for (    IDragAndDropServiceHandler handler : DragAndDropManager.getHandlers()) {
      rcSetting=handler.getCorrespondingComponentName(item,type);
      if (rcSetting != null) {
        break;
      }
    }
    if (rcSetting == null) {
      return;
    }
  }
  boolean isCurrentProject=true;
  String projectName=null;
  if (store.seletetedNode.getObject() != null) {
    projectName=store.seletetedNode.getObject().getProjectLabel();
    isCurrentProject=projectName.equals(ProjectManager.getInstance().getCurrentProject().getLabel());
  }
  List<IComponent> neededComponents=RepositoryComponentManager.filterNeededComponents(item,store.seletetedNode,type,isCurrentProject,projectName);
  for (  IDragAndDropServiceHandler handler : DragAndDropManager.getHandlers()) {
    List<IComponent> comList=handler.filterNeededComponents(item,store.seletetedNode,type);
    if (comList != null) {
      for (      IComponent handlerComp : comList) {
        if (!neededComponents.contains(handlerComp) && !handlerComp.isTechnical()) {
          neededComponents.add(handlerComp);
        }
      }
    }
  }
  String hbaseName=EDatabaseTypeName.HBASE.getDisplayName().toUpperCase();
  if (rcSetting != null && (hbaseName).equals(rcSetting.toString())) {
    IComponentsService service=(IComponentsService)GlobalServiceRegister.getDefault().getService(IComponentsService.class);
    String componentProductname=null;
    Collection<IComponent> components=service.getComponentsFactory().readComponents();
    for (    IComponent component : components) {
      componentProductname=component.getRepositoryType();
      if (componentProductname != null && componentProductname.contains(hbaseName) && !neededComponents.contains(component) && !component.isTechnical()) {
        neededComponents.add(component);
      }
    }
  }
  neededComponents=(List<IComponent>)ComponentUtilities.filterVisibleComponents(neededComponents);
  IComponent component=chooseOneComponent(extractComponents(neededComponents),rcSetting,quickCreateInput,quickCreateOutput);
  store.component=component;
  store.componentName=rcSetting;
}