Program: 69318
Project: 69318
Buggy source:
@Override protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  setFormTitle("String_Node_Str");
  setFormDescription("String_Node_Str");
  setFormContextHelp("String_Node_Str");
  config=msNode.getModuleConfiguration();
  allowHighScore=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  allowHighScore.addActionListener(FormEvent.ONCLICK);
  boolean allowhighscore=config.getBooleanSafe(CONFIG_KEY_HIGHSCORE,false);
  if (allowhighscore) {
    allowHighScore.select("String_Node_Str",allowhighscore);
  }
  dateStart=new JSDateChooser("String_Node_Str",getLocale());
  dateStart.setLabel("String_Node_Str",null);
  dateStart.setExampleKey("String_Node_Str",null);
  dateStart.setDateChooserTimeEnabled(true);
  dateStart.setValidDateCheck("String_Node_Str");
  formLayout.add(dateStart);
  Date start=config.getBooleanEntry(CONFIG_KEY_DATESTART) != null ? (Date)config.get(CONFIG_KEY_DATESTART) : null;
  dateStart.setDate(start);
  displayAnonymous=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  if (config.getBooleanSafe(CONFIG_KEY_ANONYMIZE,false)) {
    displayAnonymous.select("String_Node_Str",true);
  }
  uifactory.addSpacerElement("String_Node_Str",formLayout,false);
  showPosition=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{translate("String_Node_Str")});
  showPosition.addActionListener(FormEvent.ONCLICK);
  boolean showposition=config.getBooleanSafe(CONFIG_KEY_POSITION,false);
  if (showposition) {
    showPosition.select("String_Node_Str",true);
  }
  showPodium=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{translate("String_Node_Str")});
  showPodium.addActionListener(FormEvent.ONCLICK);
  if (config.getBooleanSafe(CONFIG_KEY_PODIUM,false)) {
    showPodium.select("String_Node_Str",true);
  }
  showHistogram=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{translate("String_Node_Str")});
  showHistogram.addActionListener(FormEvent.ONCLICK);
  if (config.getBooleanSafe(CONFIG_KEY_HISTOGRAM,false)) {
    showHistogram.select("String_Node_Str",true);
  }
  showListing=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{translate("String_Node_Str")});
  showListing.addActionListener(FormEvent.ONCLICK);
  boolean listing=config.getBooleanSafe(CONFIG_KEY_LISTING,false);
  if (listing) {
    showListing.select("String_Node_Str",true);
  }
  final String[] yesOrNoOptions=new String[yesOrNoKeys.length];
  for (int i=0; i < yesOrNoKeys.length; i++) {
    yesOrNoOptions[i]=translate(yesOrNoKeys[i]);
  }
  horizontalRadioButtons=uifactory.addRadiosHorizontal("String_Node_Str",formLayout,yesOrNoKeys,yesOrNoOptions);
  int showAll=config.getBooleanEntry(CONFIG_KEY_BESTONLY) != null ? (int)config.get(CONFIG_KEY_BESTONLY) : 1;
  horizontalRadioButtons.select(yesOrNoKeys[showAll],true);
  horizontalRadioButtons.addActionListener(FormEvent.ONCLICK);
  horizontalRadioButtons.setVisible(listing);
  numTableRows=uifactory.addIntegerElement("String_Node_Str","String_Node_Str",10,formLayout);
  numTableRows.setMandatory(true);
  numTableRows.setNotEmptyCheck("String_Node_Str");
  numTableRows.setMinValueCheck(1,"String_Node_Str");
  numTableRows.setMaxValueCheck(100000,"String_Node_Str");
  numTableRows.setIntValueCheck("String_Node_Str");
  if (showAll == 0 || !listing) {
    numTableRows.setVisible(false);
  }
  int numuser=config.getBooleanEntry(CONFIG_KEY_NUMUSER) != null ? (int)config.get(CONFIG_KEY_NUMUSER) : 10;
  numTableRows.setIntValue(numuser);
  final FormLayoutContainer buttonLayout=FormLayoutContainer.createButtonLayout("String_Node_Str",getTranslator());
  formLayout.add(buttonLayout);
  uifactory.addFormSubmitButton("String_Node_Str",buttonLayout);
  uifactory.addFormCancelButton("String_Node_Str",buttonLayout,ureq,getWindowControl());
  activateForm(true);
}

Fixed version (ground truth):
@Override protected void initForm(FormItemContainer formLayout,Controller listener,UserRequest ureq){
  setFormTitle("String_Node_Str");
  setFormDescription("String_Node_Str");
  setFormContextHelp("String_Node_Str");
  allowHighScore=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  allowHighScore.addActionListener(FormEvent.ONCLICK);
  boolean allowhighscore=config.getBooleanSafe(CONFIG_KEY_HIGHSCORE,false);
  if (allowhighscore) {
    allowHighScore.select("String_Node_Str",allowhighscore);
  }
  dateStart=new JSDateChooser("String_Node_Str",getLocale());
  dateStart.setLabel("String_Node_Str",null);
  dateStart.setExampleKey("String_Node_Str",null);
  dateStart.setDateChooserTimeEnabled(true);
  dateStart.setValidDateCheck("String_Node_Str");
  formLayout.add(dateStart);
  Date start=config.getBooleanEntry(CONFIG_KEY_DATESTART) != null ? (Date)config.get(CONFIG_KEY_DATESTART) : null;
  dateStart.setDate(start);
  displayAnonymous=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{null});
  if (config.getBooleanSafe(CONFIG_KEY_ANONYMIZE,false)) {
    displayAnonymous.select("String_Node_Str",true);
  }
  uifactory.addSpacerElement("String_Node_Str",formLayout,false);
  showPosition=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{translate("String_Node_Str")});
  showPosition.addActionListener(FormEvent.ONCLICK);
  boolean showposition=config.getBooleanSafe(CONFIG_KEY_POSITION,false);
  if (showposition) {
    showPosition.select("String_Node_Str",true);
  }
  showPodium=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{translate("String_Node_Str")});
  showPodium.addActionListener(FormEvent.ONCLICK);
  if (config.getBooleanSafe(CONFIG_KEY_PODIUM,false)) {
    showPodium.select("String_Node_Str",true);
  }
  showHistogram=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{translate("String_Node_Str")});
  showHistogram.addActionListener(FormEvent.ONCLICK);
  if (config.getBooleanSafe(CONFIG_KEY_HISTOGRAM,false)) {
    showHistogram.select("String_Node_Str",true);
  }
  showListing=uifactory.addCheckboxesHorizontal("String_Node_Str",formLayout,new String[]{"String_Node_Str"},new String[]{translate("String_Node_Str")});
  showListing.addActionListener(FormEvent.ONCLICK);
  boolean listing=config.getBooleanSafe(CONFIG_KEY_LISTING,false);
  if (listing) {
    showListing.select("String_Node_Str",true);
  }
  final String[] yesOrNoOptions=new String[yesOrNoKeys.length];
  for (int i=0; i < yesOrNoKeys.length; i++) {
    yesOrNoOptions[i]=translate(yesOrNoKeys[i]);
  }
  bestOnlyEl=uifactory.addRadiosHorizontal("String_Node_Str",formLayout,yesOrNoKeys,yesOrNoOptions);
  int showAll=config.getBooleanEntry(CONFIG_KEY_BESTONLY) != null ? (int)config.get(CONFIG_KEY_BESTONLY) : 1;
  bestOnlyEl.select(yesOrNoKeys[showAll],true);
  bestOnlyEl.addActionListener(FormEvent.ONCLICK);
  bestOnlyEl.setVisible(listing);
  numTableRows=uifactory.addIntegerElement("String_Node_Str","String_Node_Str",10,formLayout);
  numTableRows.setMandatory(true);
  numTableRows.setNotEmptyCheck("String_Node_Str");
  numTableRows.setMinValueCheck(1,"String_Node_Str");
  numTableRows.setMaxValueCheck(100000,"String_Node_Str");
  numTableRows.setIntValueCheck("String_Node_Str");
  if (showAll == 0 || !listing) {
    numTableRows.setVisible(false);
  }
  int numuser=config.getBooleanEntry(CONFIG_KEY_NUMUSER) != null ? (int)config.get(CONFIG_KEY_NUMUSER) : 10;
  numTableRows.setIntValue(numuser);
  final FormLayoutContainer buttonLayout=FormLayoutContainer.createButtonLayout("String_Node_Str",getTranslator());
  formLayout.add(buttonLayout);
  uifactory.addFormSubmitButton("String_Node_Str",buttonLayout);
  uifactory.addFormCancelButton("String_Node_Str",buttonLayout,ureq,getWindowControl());
  activateForm(true);
}