Program: 118826
Project: 118826
Buggy source:
@Override protected List<ERepositoryObjectType> getTypes(){
  List<ERepositoryObjectType> list=new ArrayList<ERepositoryObjectType>(50);
  String repositoryType=getRepositoryType();
  if (repositoryType != null && repositoryType.startsWith(ERepositoryCategoryType.DATABASE.getName())) {
    list.add(ERepositoryObjectType.METADATA_CONNECTIONS);
  }
 else {
    list.add(ERepositoryObjectType.METADATA_CONNECTIONS);
    list.add(ERepositoryObjectType.METADATA_FILE_DELIMITED);
    list.add(ERepositoryObjectType.METADATA_FILE_POSITIONAL);
    list.add(ERepositoryObjectType.METADATA_FILE_REGEXP);
    list.add(ERepositoryObjectType.METADATA_FILE_XML);
    list.add(ERepositoryObjectType.METADATA_FILE_LDIF);
    list.add(ERepositoryObjectType.METADATA_FILE_EXCEL);
    list.add(ERepositoryObjectType.METADATA_FILE_HL7);
    list.add(ERepositoryObjectType.METADATA_FILE_EBCDIC);
    list.add(ERepositoryObjectType.METADATA_FILE_FTP);
    list.add(ERepositoryObjectType.METADATA_FILE_BRMS);
    list.add(ERepositoryObjectType.METADATA_GENERIC_SCHEMA);
    list.add(ERepositoryObjectType.METADATA_LDAP_SCHEMA);
    list.add(ERepositoryObjectType.METADATA_WSDL_SCHEMA);
    list.add(ERepositoryObjectType.METADATA_SALESFORCE_SCHEMA);
    list.add(ERepositoryObjectType.METADATA_SAPCONNECTIONS);
    list.add(ERepositoryObjectType.METADATA_RULES_MANAGEMENT);
    list.add(ERepositoryObjectType.METADATA_MDMCONNECTION);
    list.add(ERepositoryObjectType.METADATA_EDIFACT);
    for (    IRepositoryContentHandler handler : RepositoryContentManager.getHandlers()) {
      if (handler.hasSchemas() && handler.getHandleType() != null) {
        list.add(handler.getHandleType());
      }
    }
  }
  return list;
}

Fixed version (ground truth):
@Override protected List<ERepositoryObjectType> getTypes(){
  List<ERepositoryObjectType> list=new ArrayList<ERepositoryObjectType>(50);
  String repositoryType=getRepositoryType();
  if (repositoryType != null && repositoryType.startsWith(ERepositoryCategoryType.DATABASE.getName())) {
    list.add(ERepositoryObjectType.METADATA_CONNECTIONS);
  }
 else {
    list.add(ERepositoryObjectType.METADATA_CONNECTIONS);
    list.add(ERepositoryObjectType.METADATA_FILE_DELIMITED);
    list.add(ERepositoryObjectType.METADATA_FILE_POSITIONAL);
    list.add(ERepositoryObjectType.METADATA_FILE_REGEXP);
    list.add(ERepositoryObjectType.METADATA_FILE_XML);
    list.add(ERepositoryObjectType.METADATA_FILE_LDIF);
    list.add(ERepositoryObjectType.METADATA_FILE_EXCEL);
    list.add(ERepositoryObjectType.METADATA_FILE_HL7);
    list.add(ERepositoryObjectType.METADATA_FILE_EBCDIC);
    list.add(ERepositoryObjectType.METADATA_FILE_FTP);
    list.add(ERepositoryObjectType.METADATA_FILE_BRMS);
    list.add(ERepositoryObjectType.METADATA_GENERIC_SCHEMA);
    list.add(ERepositoryObjectType.METADATA_LDAP_SCHEMA);
    list.add(ERepositoryObjectType.METADATA_WSDL_SCHEMA);
    list.add(ERepositoryObjectType.METADATA_SALESFORCE_SCHEMA);
    list.add(ERepositoryObjectType.METADATA_SAPCONNECTIONS);
    list.add(ERepositoryObjectType.METADATA_RULES_MANAGEMENT);
    list.add(ERepositoryObjectType.METADATA_MDMCONNECTION);
    list.add(ERepositoryObjectType.METADATA_EDIFACT);
    for (    IRepositoryContentHandler handler : RepositoryContentManager.getHandlers()) {
      if (handler.hasSchemas() && handler.getHandleType() != null) {
        list.add(handler.getHandleType());
      }
    }
    IGenericWizardService wizardService=null;
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IGenericWizardService.class)) {
      wizardService=(IGenericWizardService)GlobalServiceRegister.getDefault().getService(IGenericWizardService.class);
    }
    if (wizardService != null) {
      List<String> genericTypeNames=wizardService.getGenericTypeNames();
      for (      String genericType : genericTypeNames) {
        ERepositoryObjectType repObjType=ERepositoryObjectType.valueOf(genericType);
        if (repObjType != null) {
          list.add(repObjType);
        }
      }
    }
  }
  return list;
}