Program: 119261
Project: 119261
Buggy source:
@Override protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {
  List<IRepositoryViewObject> list=new ArrayList<IRepositoryViewObject>();
  ERepositoryObjectType mrRepObjType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (mrRepObjType != null) {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
      IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
      List<IRepositoryViewObject> mrList=service.getProxyRepositoryFactory().getAll(mrRepObjType,true,false);
      if (mrList != null && mrList.size() > 0) {
        list.addAll(mrList);
      }
    }
  }
  if (ERepositoryObjectType.ROUTINES != null) {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
      IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
      List<IRepositoryViewObject> mrList=service.getProxyRepositoryFactory().getAll(ERepositoryObjectType.ROUTINES,true,false);
      if (mrList != null && mrList.size() > 0) {
        list.addAll(mrList);
      }
    }
  }
  ERepositoryObjectType routeType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (routeType != null) {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
      IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
      List<IRepositoryViewObject> routeList=service.getProxyRepositoryFactory().getAll(routeType,true,false);
      if (routeList != null && routeList.size() > 0) {
        list.addAll(routeList);
      }
    }
  }
  return list;
}

Fixed version (ground truth):
@Override protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {
  List<IRepositoryViewObject> list=new ArrayList<IRepositoryViewObject>();
  List<IRepositoryViewObject> processList=getAllProcessTypeObjectsWithoutCurrentType();
  if (processList != null && !processList.isEmpty()) {
    list.addAll(processList);
  }
  if (ERepositoryObjectType.ROUTINES != null) {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
      IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
      List<IRepositoryViewObject> mrList=service.getProxyRepositoryFactory().getAll(ERepositoryObjectType.ROUTINES,true,false);
      if (mrList != null && mrList.size() > 0) {
        list.addAll(mrList);
      }
    }
  }
  ERepositoryObjectType routeType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (routeType != null) {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
      IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
      List<IRepositoryViewObject> routeList=service.getProxyRepositoryFactory().getAll(routeType,true,false);
      if (routeList != null && routeList.size() > 0) {
        list.addAll(routeList);
      }
    }
  }
  return list;
}