Program: 35404
Project: 35404
Buggy source:
/** 
 * Retrieves the projects and populates the corresponding field.
 */
private void loadProjects(){
  final GetProjects command=new GetProjects();
  command.setViewOwnOrManage(true);
  command.setMappingMode(ProjectDTO.Mode._USE_PROJECT_MAPPER);
  view.getProjectsField().getStore().removeAll();
  dispatch.execute(command,new CommandResultHandler<ListResult<ProjectDTO>>(){
    @Override public void onCommandFailure(    final Throwable e){
      if (Log.isErrorEnabled()) {
        Log.error("String_Node_Str",e);
      }
      N10N.error(I18N.CONSTANTS.createProjectTypeError(),I18N.CONSTANTS.createProjectTypeErrorDetails());
    }
    @Override public void onCommandSuccess(    final ListResult<ProjectDTO> result){
      final List<ProjectDTO> projects=result.getList();
      projects.remove(parentProject);
      if (ClientUtils.isEmpty(projects)) {
        N10N.warn(I18N.CONSTANTS.createProjectTypeFundingSelectNone(),I18N.CONSTANTS.createProjectTypeFundingSelectNoneDetails());
        hideView();
        return;
      }
      Collections.sort(projects,PROJECT_NAME_COMPARATOR);
      final Map<CountryDTO,List<ProjectDTO>> map=new TreeMap<CountryDTO,List<ProjectDTO>>(COUNTRY_NAME_COMPARATOR);
      for (      final ProjectDTO project : projects) {
        final CountryDTO country=project.getCountry();
        project.generateTypeIconHTML(auth().getOrganizationId());
        if (map.containsKey(country)) {
          map.get(country).add(project);
        }
 else {
          final List<ProjectDTO> countryProjects=new ArrayList<ProjectDTO>();
          countryProjects.add(project);
          map.put(country,countryProjects);
        }
      }
      final List<ModelData> projectsListForCombo=new ArrayList<ModelData>();
      for (      final CountryDTO country : map.keySet()) {
        projectsListForCombo.add(country);
        for (        final ProjectDTO project : map.get(country)) {
          projectsListForCombo.add(project);
        }
      }
      view.getProjectsField().getStore().add(projectsListForCombo);
      view.getProjectsField().getStore().commitChanges();
    }
  }
,view.getSaveButton(),view.getDeleteButton());
}

Fixed version (ground truth):
/** 
 * Retrieves the projects and populates the corresponding field.
 */
private void loadProjects(){
  final List<Integer> orgUnitsIdsAsList=auth().getOrgUnitIds() != null ? new ArrayList<Integer>(auth().getOrgUnitIds()) : null;
  final GetProjects command=new GetProjects(orgUnitsIdsAsList,ProjectDTO.Mode._USE_PROJECT_MAPPER);
  command.setViewOwnOrManage(true);
  view.getProjectsField().getStore().removeAll();
  dispatch.execute(command,new CommandResultHandler<ListResult<ProjectDTO>>(){
    @Override public void onCommandFailure(    final Throwable e){
      if (Log.isErrorEnabled()) {
        Log.error("String_Node_Str",e);
      }
      N10N.error(I18N.CONSTANTS.createProjectTypeError(),I18N.CONSTANTS.createProjectTypeErrorDetails());
    }
    @Override public void onCommandSuccess(    final ListResult<ProjectDTO> result){
      final List<ProjectDTO> projects=result.getList();
      projects.remove(parentProject);
      if (ClientUtils.isEmpty(projects)) {
        N10N.warn(I18N.CONSTANTS.createProjectTypeFundingSelectNone(),I18N.CONSTANTS.createProjectTypeFundingSelectNoneDetails());
        hideView();
        return;
      }
      Collections.sort(projects,PROJECT_NAME_COMPARATOR);
      final Map<CountryDTO,List<ProjectDTO>> map=new TreeMap<CountryDTO,List<ProjectDTO>>(COUNTRY_NAME_COMPARATOR);
      for (      final ProjectDTO project : projects) {
        final CountryDTO country=project.getCountry();
        project.generateTypeIconHTML(auth().getOrganizationId());
        if (map.containsKey(country)) {
          map.get(country).add(project);
        }
 else {
          final List<ProjectDTO> countryProjects=new ArrayList<ProjectDTO>();
          countryProjects.add(project);
          map.put(country,countryProjects);
        }
      }
      final List<ModelData> projectsListForCombo=new ArrayList<ModelData>();
      for (      final CountryDTO country : map.keySet()) {
        projectsListForCombo.add(country);
        for (        final ProjectDTO project : map.get(country)) {
          projectsListForCombo.add(project);
        }
      }
      view.getProjectsField().getStore().add(projectsListForCombo);
      view.getProjectsField().getStore().commitChanges();
    }
  }
,view.getSaveButton(),view.getDeleteButton());
}