Program: 69444
Project: 69444
Buggy source:
@Override protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  String[] correctionModeValues=new String[]{translate("String_Node_Str"),translate("String_Node_Str")};
  correctionModeEl=uifactory.addRadiosVertical("String_Node_Str","String_Node_Str",formLayout,correctionModeKeys,correctionModeValues);
  String mode=modConfig.getStringValue(IQEditController.CONFIG_CORRECTION_MODE);
  boolean selected=false;
  for (  String correctionModeKey : correctionModeKeys) {
    if (correctionModeKey.equals(mode)) {
      correctionModeEl.select(correctionModeKey,true);
      selected=true;
    }
  }
  if (!selected) {
    if (needManulCorrection) {
      correctionModeEl.select(correctionModeKeys[1],true);
    }
 else {
      correctionModeEl.select(correctionModeKeys[0],true);
    }
  }
  boolean fullWindow=modConfig.getBooleanSafe(IQEditController.CONFIG_FULLWINDOW);
  fullWindowEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{"String_Node_Str"});
  fullWindowEl.select("String_Node_Str",fullWindow);
  boolean showTitles=mergeBoolean(modConfig.getBooleanEntry(IQEditController.CONFIG_KEY_QUESTIONTITLE),deliveryOptions.isDisplayQuestionProgress());
  showTitlesEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (showTitles) {
    showTitlesEl.select(onKeys[0],true);
  }
  boolean personalNotes=mergeBoolean(modConfig.getBooleanEntry(IQEditController.CONFIG_KEY_MEMO),deliveryOptions.isDisplayQuestionProgress());
  personalNotesEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (personalNotes) {
    personalNotesEl.select(onKeys[0],true);
  }
  boolean questionProgress=mergeBoolean(modConfig.getBooleanEntry(IQEditController.CONFIG_KEY_QUESTIONPROGRESS),deliveryOptions.isDisplayQuestionProgress());
  displayQuestionProgressEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (questionProgress) {
    displayQuestionProgressEl.select(onKeys[0],true);
  }
  boolean questionScore=mergeBoolean(modConfig.getBooleanEntry(IQEditController.CONFIG_KEY_SCOREPROGRESS),deliveryOptions.isDisplayScoreProgress());
  displayScoreProgressEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (questionScore) {
    displayScoreProgressEl.select(onKeys[0],true);
  }
  boolean enableSuspend=mergeBoolean(modConfig.getBooleanEntry(IQEditController.CONFIG_KEY_ENABLESUSPEND),deliveryOptions.isEnableSuspend());
  enableSuspendEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (enableSuspend) {
    enableSuspendEl.select(onKeys[0],true);
  }
  boolean enableCancel=mergeBoolean(modConfig.getBooleanEntry(IQEditController.CONFIG_KEY_ENABLECANCEL),deliveryOptions.isEnableCancel());
  enableCancelEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (enableCancel) {
    enableCancelEl.select(onKeys[0],true);
  }
  uifactory.addFormSubmitButton("String_Node_Str",formLayout);
}

Fixed version (ground truth):
@Override protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  String[] correctionModeValues=new String[]{translate("String_Node_Str"),translate("String_Node_Str")};
  correctionModeEl=uifactory.addRadiosVertical("String_Node_Str","String_Node_Str",formLayout,correctionModeKeys,correctionModeValues);
  String mode=modConfig.getStringValue(IQEditController.CONFIG_CORRECTION_MODE);
  boolean selected=false;
  for (  String correctionModeKey : correctionModeKeys) {
    if (correctionModeKey.equals(mode)) {
      correctionModeEl.select(correctionModeKey,true);
      selected=true;
    }
  }
  if (!selected) {
    if (needManulCorrection) {
      correctionModeEl.select(correctionModeKeys[1],true);
    }
 else {
      correctionModeEl.select(correctionModeKeys[0],true);
    }
  }
  limitAttemptsEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  limitAttemptsEl.addActionListener(FormEvent.ONCLICK);
  String maxAttemptsValue="String_Node_Str";
  int maxAttempts=modConfig.getIntegerSafe(IQEditController.CONFIG_KEY_ATTEMPTS,deliveryOptions.getMaxAttempts());
  if (maxAttempts > 0) {
    limitAttemptsEl.select(onKeys[0],true);
  }
  maxAttemptsEl=uifactory.addTextElement("String_Node_Str","String_Node_Str",8,maxAttemptsValue,formLayout);
  maxAttemptsEl.setDisplaySize(2);
  maxAttemptsEl.setVisible(maxAttempts > 0);
  boolean blockAfterSuccess=modConfig.getBooleanSafe(IQEditController.CONFIG_KEY_BLOCK_AFTER_SUCCESS,deliveryOptions.isBlockAfterSuccess());
  blockAfterSuccessEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (blockAfterSuccess) {
    blockAfterSuccessEl.select(onKeys[0],true);
  }
  boolean fullWindow=modConfig.getBooleanSafe(IQEditController.CONFIG_FULLWINDOW);
  fullWindowEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{"String_Node_Str"});
  fullWindowEl.select("String_Node_Str",fullWindow);
  boolean showTitles=modConfig.getBooleanSafe(IQEditController.CONFIG_KEY_QUESTIONTITLE,deliveryOptions.isDisplayQuestionProgress());
  showTitlesEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (showTitles) {
    showTitlesEl.select(onKeys[0],true);
  }
  boolean personalNotes=modConfig.getBooleanSafe(IQEditController.CONFIG_KEY_MEMO,deliveryOptions.isDisplayQuestionProgress());
  personalNotesEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (personalNotes) {
    personalNotesEl.select(onKeys[0],true);
  }
  boolean questionProgress=modConfig.getBooleanSafe(IQEditController.CONFIG_KEY_QUESTIONPROGRESS,deliveryOptions.isDisplayQuestionProgress());
  displayQuestionProgressEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (questionProgress) {
    displayQuestionProgressEl.select(onKeys[0],true);
  }
  boolean questionScore=modConfig.getBooleanSafe(IQEditController.CONFIG_KEY_SCOREPROGRESS,deliveryOptions.isDisplayScoreProgress());
  displayScoreProgressEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (questionScore) {
    displayScoreProgressEl.select(onKeys[0],true);
  }
  boolean enableSuspend=modConfig.getBooleanSafe(IQEditController.CONFIG_KEY_ENABLESUSPEND,deliveryOptions.isEnableSuspend());
  enableSuspendEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (enableSuspend) {
    enableSuspendEl.select(onKeys[0],true);
  }
  boolean enableCancel=modConfig.getBooleanSafe(IQEditController.CONFIG_KEY_ENABLECANCEL,deliveryOptions.isEnableCancel());
  enableCancelEl=uifactory.addCheckboxesHorizontal("String_Node_Str","String_Node_Str",formLayout,onKeys,onValues);
  if (enableCancel) {
    enableCancelEl.select(onKeys[0],true);
  }
  uifactory.addFormSubmitButton("String_Node_Str",formLayout);
}