Program: 78096
Project: 78096
Buggy source:
protected boolean initDialog(){
  if (inputGroup.getName() != null) {
    nameEditor.setText(inputGroup.getName());
  }
  refreshColumnList();
  setKeyExpression(inputGroup.getKeyExpr());
  int index=getIntervalTypeIndex(inputGroup.getInterval());
  intervalType.select(index);
  if (index == 0) {
    intervalRange.setEnabled(false);
    intervalBaseButton.setEnabled(false);
    intervalBaseText.setEnabled(false);
  }
 else {
    intervalRange.setEnabled(true);
    intervalRange.setSelection(inputGroup.getIntervalRange());
    if (getColumnType() == String.class) {
      intervalBaseButton.setEnabled(false);
      intervalBaseText.setEnabled(false);
    }
 else {
      intervalBaseButton.setEnabled(true);
      intervalBaseButton.setSelection(inputGroup.getIntervalBase() != null);
      intervalBaseText.setEnabled(intervalBaseButton.getSelection());
      if (inputGroup.getIntervalBase() != null) {
        intervalBaseText.setText(inputGroup.getIntervalBase());
      }
    }
  }
  if (inputGroup instanceof TableGroupHandle) {
    includeHeader.setSelection(inputGroup.hasHeader());
    includeFooter.setSelection(inputGroup.hasFooter());
  }
 else {
    includeHeader.setSelection(false);
    includeFooter.setSelection(false);
  }
  if (DesignChoiceConstants.SORT_DIRECTION_ASC.equals(inputGroup.getSortDirection())) {
    ascending.setSelection(true);
  }
 else {
    descending.setSelection(true);
  }
  List list=new ArrayList(1);
  list.add(inputGroup);
  tocEditor.setText(UIUtil.convertToGUIString(inputGroup.getTocExpression()));
  index=getPagebreakBeforeIndex(inputGroup.getPageBreakBefore());
  pagebreakBeforeCombo.select(index);
  index=getPagebreakAfterIndex(inputGroup.getPageBreakAfter());
  pagebreakAfterCombo.select(index);
  if (inputGroup.repeatHeader()) {
    repeatHeaderButton.setSelection(true);
  }
  hideDetail.setSelection(inputGroup.hideDetail());
  inputGroup.addListener(this);
  return true;
}

Fixed version (ground truth):
protected boolean initDialog(){
  if (inputGroup.getName() != null) {
    nameEditor.setText(inputGroup.getName());
  }
  refreshColumnList();
  setKeyExpression(inputGroup.getKeyExpr());
  int index=getIntervalTypeIndex(inputGroup.getInterval());
  intervalType.select(index);
  if (index == 0) {
    intervalRange.setEnabled(false);
    intervalBaseButton.setEnabled(false);
    intervalBaseText.setEnabled(false);
  }
 else {
    intervalRange.setEnabled(true);
    intervalRange.setSelection(inputGroup.getIntervalRange());
    if (getColumnType() == String.class) {
      intervalBaseButton.setEnabled(false);
      intervalBaseText.setEnabled(false);
    }
 else {
      intervalBaseButton.setEnabled(true);
      intervalBaseButton.setSelection(inputGroup.getIntervalBase() != null);
      intervalBaseText.setEnabled(intervalBaseButton.getSelection());
      if (inputGroup.getIntervalBase() != null) {
        intervalBaseText.setText(inputGroup.getIntervalBase());
      }
    }
  }
  if (DesignChoiceConstants.SORT_DIRECTION_ASC.equals(inputGroup.getSortDirection())) {
    ascending.setSelection(true);
  }
 else {
    descending.setSelection(true);
  }
  List list=new ArrayList(1);
  list.add(inputGroup);
  tocEditor.setText(UIUtil.convertToGUIString(inputGroup.getTocExpression()));
  index=getPagebreakBeforeIndex(inputGroup.getPageBreakBefore());
  pagebreakBeforeCombo.select(index);
  index=getPagebreakAfterIndex(inputGroup.getPageBreakAfter());
  pagebreakAfterCombo.select(index);
  if (inputGroup.repeatHeader()) {
    repeatHeaderButton.setSelection(true);
  }
  hideDetail.setSelection(inputGroup.hideDetail());
  return true;
}