Program: 129631
Project: 129631
Buggy source:
public RepositoryNode getRootRepositoryNode(ERepositoryObjectType type){
  if (type == null) {
    return null;
  }
  String typeName=type.name();
  if (repositoryNodeMap.containsKey(typeName)) {
    return repositoryNodeMap.get(typeName);
  }
 else   if (type == ERepositoryObjectType.BUSINESS_PROCESS) {
    return this.businessProcessNode;
  }
 else   if (type == ERepositoryObjectType.PROCESS) {
    return this.processNode;
  }
 else   if (type == ERepositoryObjectType.CONTEXT) {
    return this.contextNode;
  }
 else   if (type == ERepositoryObjectType.ROUTINES) {
    return this.routineNode;
  }
 else   if (type == ERepositoryObjectType.JOB_SCRIPT) {
    return this.jobscriptsNode;
  }
 else   if (type == ERepositoryObjectType.SNIPPETS) {
    return this.snippetsNode;
  }
 else   if (type == ERepositoryObjectType.GENERATED || type == ERepositoryObjectType.JOBS || type == ERepositoryObjectType.JOB_DOC || type == ERepositoryObjectType.JOBLETS || type == ERepositoryObjectType.JOBLET_DOC || type == ERepositoryObjectType.DOCUMENTATION) {
    return this.docNode;
  }
 else   if (type == ERepositoryObjectType.METADATA) {
    return this.metadataNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_CON_VIEW || type == ERepositoryObjectType.METADATA_CON_SYNONYM || type == ERepositoryObjectType.METADATA_CON_QUERY || type == ERepositoryObjectType.METADATA_CON_CDC || type == ERepositoryObjectType.METADATA_CONNECTIONS) {
    return this.metadataConNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_SAPCONNECTIONS) {
    return this.metadataSAPConnectionNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_SAP_FUNCTION) {
    return this.metadataSAPConnectionNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_SAP_IDOC) {
    return this.metadataSAPConnectionNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_HEADER_FOOTER) {
    return this.metadataHeaderFooterConnectionNode;
  }
 else   if (type == ERepositoryObjectType.SQLPATTERNS) {
    return this.sqlPatternNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_DELIMITED) {
    return this.metadataFileNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_POSITIONAL) {
    return this.metadataFilePositionalNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_REGEXP) {
    return this.metadataFileRegexpNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_XML) {
    return this.metadataFileXmlNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_LDIF) {
    return this.metadataFileLdifNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_EXCEL) {
    return this.metadataFileExcelNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_EBCDIC) {
    return this.metadataEbcdicConnectionNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_HL7) {
    return this.metadataHL7ConnectionNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_FTP) {
    return this.metadataFTPConnectionNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_BRMS) {
    return this.metadataBRMSConnectionNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_MDMCONNECTION || type == ERepositoryObjectType.MDM_CONCEPT) {
    return this.metadataMDMConnectionNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_SALESFORCE_SCHEMA) {
    return this.metadataSalesforceSchemaNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_SALESFORCE_MODULE) {
    return this.metadataSalesforceSchemaNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_GENERIC_SCHEMA) {
    return this.metadataGenericSchemaNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_LDAP_SCHEMA) {
    return this.metadataLDAPSchemaNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_WSDL_SCHEMA) {
    return this.metadataWSDLSchemaNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_FILE_RULES || type == ERepositoryObjectType.METADATA_FILE_LINKRULES) {
    return this.metadataRulesNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_VALIDATION_RULES) {
    return this.metadataValidationRulesNode;
  }
 else   if (type == ERepositoryObjectType.METADATA_EDIFACT) {
    return this.metadataEDIFactConnectionNode;
  }
 else   if (type == ERepositoryObjectType.REFERENCED_PROJECTS) {
    return this.refProject;
  }
 else   if (type == ERepositoryObjectType.JOBLET) {
    return this.jobletNode;
  }
 else   if (type == ERepositoryObjectType.SVN_ROOT) {
    return this.svnRootNode;
  }
  return null;
}

Fixed version (ground truth):
public RepositoryNode getRootRepositoryNode(ERepositoryObjectType type){
  if (type == null) {
    return null;
  }
  String typeName=type.name();
  if (repositoryNodeMap.containsKey(typeName)) {
    return repositoryNodeMap.get(typeName);
  }
  return null;
}