Program: 70824
Project: 70824
Buggy source:
private void initLevelDialog(){
  if (input != null) {
    expressionEditor.setExpressionProvider(new CubeExpressionProvider(input));
  }
  if (input.getLevelType() == null) {
    try {
      input.setLevelType(DesignChoiceConstants.LEVEL_TYPE_DYNAMIC);
    }
 catch (    SemanticException e) {
      ExceptionHandler.handle(e);
    }
  }
  refreshDynamicViewer();
  dataset=OlapUtil.getHierarchyDataset((TabularHierarchyHandle)input.getContainer());
  if (dataset != null)   attributeItems=OlapUtil.getDataFieldNames(dataset);
  resetEditorItems();
  if (input.getName() != null)   nameText.setText(input.getName());
  dynamicDataTypeCombo.setItems(getDataTypeDisplayNames());
  dynamicDataTypeCombo.setText(getDataTypeDisplayName(input.getDataType()));
  fieldCombo.setItems(OlapUtil.getDataFieldNames(dataset));
  if (input.getColumnName() != null)   fieldCombo.setText(input.getColumnName());
 else   fieldCombo.select(0);
  displayKeyCombo.setItems(OlapUtil.getDataFieldNames(dataset));
  displayKeyCombo.add(Messages.getString("String_Node_Str"),0);
  if (input.getDisplayColumnName() != null) {
    displayKeyCombo.setText(input.getDisplayColumnName());
  }
 else   if (displayKeyCombo.getItemCount() > 0)   displayKeyCombo.select(0);
  staticDataTypeCombo.setItems(getDataTypeDisplayNames());
  staticNameText.setText(input.getName());
  staticDataTypeCombo.setText(getDataTypeDisplayName(input.getDataType()));
  refreshStaticViewer();
  if (input.getLevelType().equals(DesignChoiceConstants.LEVEL_TYPE_DYNAMIC)) {
    dynamicButton.setSelection(true);
    updateButtonStatus(dynamicButton);
  }
 else {
    staticButton.setSelection(true);
    updateButtonStatus(staticButton);
  }
}

Fixed version (ground truth):
private void initLevelDialog(){
  if (input != null) {
    expressionEditor.setExpressionProvider(new CubeExpressionProvider(input));
    if (input.getLevelType() == null) {
      try {
        input.setLevelType(DesignChoiceConstants.LEVEL_TYPE_DYNAMIC);
      }
 catch (      SemanticException e) {
        ExceptionHandler.handle(e);
      }
    }
    refreshDynamicViewer();
    dataset=OlapUtil.getHierarchyDataset((TabularHierarchyHandle)input.getContainer());
    if (dataset != null)     attributeItems=OlapUtil.getDataFieldNames(dataset);
    resetEditorItems();
    if (input.getName() != null)     nameText.setText(input.getName());
    dynamicDataTypeCombo.setItems(getDataTypeDisplayNames());
    dynamicDataTypeCombo.setText(getDataTypeDisplayName(input.getDataType()));
    fieldCombo.setItems(OlapUtil.getDataFieldNames(dataset));
    if (input.getColumnName() != null)     fieldCombo.setText(input.getColumnName());
 else     fieldCombo.select(0);
    displayKeyCombo.setItems(OlapUtil.getDataFieldNames(dataset));
    displayKeyCombo.add(Messages.getString("String_Node_Str"),0);
    if (input.getDisplayColumnName() != null) {
      displayKeyCombo.setText(input.getDisplayColumnName());
    }
 else     if (displayKeyCombo.getItemCount() > 0)     displayKeyCombo.select(0);
    staticDataTypeCombo.setItems(getDataTypeDisplayNames());
    staticNameText.setText(input.getName());
    staticDataTypeCombo.setText(getDataTypeDisplayName(input.getDataType()));
    refreshStaticViewer();
    if (input.getLevelType().equals(DesignChoiceConstants.LEVEL_TYPE_DYNAMIC)) {
      dynamicButton.setSelection(true);
      updateButtonStatus(dynamicButton);
    }
 else {
      staticButton.setSelection(true);
      updateButtonStatus(staticButton);
    }
  }
}