Program: 35423
Project: 35423
Buggy source:
@Override public void componentSelected(ButtonEvent ce){
  UpdateGlobalContactExportSettingsCommand settings=new UpdateGlobalContactExportSettingsCommand(view.getFieldsMap());
  if (view.getExcelChoice().getValue()) {
    settings.setExportFormat(ExportUtils.ExportFormat.XLS);
  }
 else {
    settings.setExportFormat(ExportUtils.ExportFormat.ODS);
  }
  if (view.getExportSchedulesBox().getValue() == null || view.getExportSchedulesBox().getValue().getValue() == 0) {
    settings.setAutoExportFrequency(null);
  }
 else {
    if (view.getExportSchedulesBox().getValue().getValue() == 31) {
      settings.setAutoExportFrequency(view.getExportMonthlySchedulesBox().getValue().getValue());
    }
 else     if (view.getExportSchedulesBox().getValue().getValue() == 61) {
      settings.setAutoExportFrequency(view.getExportWeeklySchedulesBox().getValue().getValue());
    }
 else {
      settings.setAutoExportFrequency(view.getExportSchedulesBox().getValue().getValue());
    }
  }
  if (view.getDeleteSchedulesBox().getValue() == null || view.getDeleteSchedulesBox().getValue().getValue() == 0) {
    settings.setAutoDeleteFrequency(null);
  }
 else {
    settings.setAutoDeleteFrequency(view.getDeleteSchedulesBox().getValue().getValue());
  }
  settings.setOrganizationId(auth().getOrganizationId());
  dispatch.execute(settings,new CommandResultHandler<VoidResult>(){
    @Override public void onCommandFailure(    Throwable caught){
      N10N.warn(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardCreationFailure(I18N.CONSTANTS.globalExportConfiguration()));
    }
    @Override public void onCommandSuccess(    VoidResult result){
      view.hide();
      N10N.infoNotif(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardUpdateSuccess(I18N.CONSTANTS.globalExportConfiguration()));
    }
  }
);
}

Fixed version (ground truth):
@Override public void componentSelected(ButtonEvent ce){
  UpdateGlobalContactExportSettingsCommand settings=new UpdateGlobalContactExportSettingsCommand(view.getFieldsMap());
  if (view.getExcelChoice().getValue()) {
    settings.setExportFormat(ExportUtils.ExportFormat.XLS);
  }
 else {
    settings.setExportFormat(ExportUtils.ExportFormat.ODS);
  }
  if (view.getExportSchedulesBox().getValue() == null || view.getExportSchedulesBox().getValue().getValue() == 0) {
    settings.setAutoExportFrequency(null);
  }
 else {
    if (view.getExportSchedulesBox().getValue().getValue() == 31) {
      settings.setAutoExportFrequency(view.getExportMonthlySchedulesBox().getValue().getValue());
    }
 else     if (view.getExportSchedulesBox().getValue().getValue() == 61) {
      settings.setAutoExportFrequency(view.getExportWeeklySchedulesBox().getValue().getValue());
    }
 else {
      settings.setAutoExportFrequency(view.getExportSchedulesBox().getValue().getValue());
    }
  }
  if (view.getDeleteSchedulesBox().getValue() == null || view.getDeleteSchedulesBox().getValue().getValue() == 0) {
    settings.setAutoDeleteFrequency(null);
  }
 else {
    settings.setAutoDeleteFrequency(view.getDeleteSchedulesBox().getValue().getValue());
  }
  settings.setOrganizationId(auth().getOrganizationId());
  dispatch.execute(settings,new CommandResultHandler<VoidResult>(){
    @Override public void onCommandFailure(    Throwable caught){
      N10N.warn(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardCreationFailure(I18N.CONSTANTS.globalContactsExportConfiguration()));
    }
    @Override public void onCommandSuccess(    VoidResult result){
      view.hide();
      N10N.infoNotif(I18N.CONSTANTS.saveExportConfiguration(),I18N.MESSAGES.adminStandardUpdateSuccess(I18N.CONSTANTS.globalContactsExportConfiguration()));
    }
  }
);
}