Program: 78388
Project: 78388
Buggy source:
protected boolean initDialog(){
  if (inputGroup.getName() != null) {
    nameEditor.setText(inputGroup.getName());
  }
  columnList=DataSetManager.getCurrentInstance().getColumns(dataSetList);
  Iterator itor=columnList.iterator();
  while (itor.hasNext()) {
    keyChooser.add(((DataSetItemModel)itor.next()).getDisplayName());
  }
  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.setSelection(inputGroup.getIntervalRange());
    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()));
  return true;
}

Fixed version (ground truth):
protected boolean initDialog(){
  if (inputGroup.getName() != null) {
    nameEditor.setText(inputGroup.getName());
  }
  columnList=DataSetManager.getCurrentInstance().getColumns(dataSetList);
  Iterator itor=columnList.iterator();
  while (itor.hasNext()) {
    keyChooser.add(((DataSetItemModel)itor.next()).getDisplayName());
  }
  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()));
  return true;
}