Program: 67459
Project: 67459
Buggy source:
protected void okPressed(){
  try {
    inputHandle.setToolTip(null);
    setURI(null,null);
    inputHandle.setTargetBookmark(null);
    inputHandle.setTargetBookmarkType(null);
    inputHandle.setTargetWindow(null);
    inputHandle.setTargetFileType(null);
    inputHandle.setReportName(null);
    inputHandle.setFormatType(null);
    inputHandle.getMember(Action.PARAM_BINDINGS_MEMBER).setValue(null);
    if (DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals(selectedType)) {
      setURI(locationEditor.getText(),(String)locationEditor.getData(ExpressionButtonUtil.EXPR_TYPE));
      if (bTargetEnabled) {
        inputHandle.setTargetWindow(ChoiceSetFactory.getValueFromChoiceSet(targetChooser.getText(),CHOICESET_TARGET));
      }
      saveTooltip();
    }
 else     if (DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK.equals(selectedType) && showBookMark) {
      ExpressionButtonUtil.saveExpressionButtonControl(bookmarkEditor,inputHandle,Action.TARGET_BOOKMARK_MEMBER);
      saveTooltip();
    }
 else     if (DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH.equals(selectedType)) {
      if (reportDesignButton.getSelection()) {
        inputHandle.setTargetFileType(DesignChoiceConstants.ACTION_TARGET_FILE_TYPE_REPORT_DESIGN);
        inputHandle.setReportName(locationEditor.getText());
        for (Iterator iter=bindingList.iterator(); iter.hasNext(); ) {
          inputHandle.addParamBinding((ParamBinding)iter.next());
        }
      }
 else       if (reportDocumentButton.getSelection()) {
        inputHandle.setTargetFileType(DesignChoiceConstants.ACTION_TARGET_FILE_TYPE_REPORT_DOCUMENT);
        inputHandle.setReportName(documentEditor.getText());
        for (Iterator iter=bindingList.iterator(); iter.hasNext(); ) {
          inputHandle.addParamBinding((ParamBinding)iter.next());
        }
      }
      if (!StringUtil.isBlank(bookmarkEditor.getText()) && !bookmarkEditor.getText().equals("String_Node_Str")) {
        ExpressionButtonUtil.saveExpressionButtonControl(bookmarkEditor,inputHandle,Action.TARGET_BOOKMARK_MEMBER);
      }
      if (targetBookmarkButton.getSelection()) {
        inputHandle.setTargetBookmarkType(DesignChoiceConstants.ACTION_BOOKMARK_TYPE_BOOKMARK);
      }
 else       if (tocButton.getSelection()) {
        inputHandle.setTargetBookmarkType(DesignChoiceConstants.ACTION_BOOKMARK_TYPE_TOC);
      }
      if (bTargetEnabled) {
        if (sameFrameButton.getSelection()) {
          inputHandle.setTargetWindow(DesignChoiceConstants.TARGET_NAMES_TYPE_SELF);
        }
 else         if (newWindowButton.getSelection()) {
          inputHandle.setTargetWindow(DesignChoiceConstants.TARGET_NAMES_TYPE_BLANK);
        }
 else         if (wholePageButton.getSelection()) {
          inputHandle.setTargetWindow(DesignChoiceConstants.TARGET_NAMES_TYPE_TOP);
        }
 else         if (parentFrameButton.getSelection()) {
          inputHandle.setTargetWindow(DesignChoiceConstants.TARGET_NAMES_TYPE_PARENT);
        }
      }
      int index=targetFormatsChooser.getSelectionIndex();
      if (checkButton.getSelection() && index != -1) {
        inputHandle.setFormatType(targetFormatsChooser.getItem(index));
      }
 else {
        inputHandle.setFormatType(null);
      }
      saveTooltip();
    }
    inputHandle.setLinkType(selectedType);
  }
 catch (  SemanticException e) {
    ExceptionHandler.handle(e);
  }
  setResult(inputHandle);
  super.okPressed();
}

Fixed version (ground truth):
protected void okPressed(){
  try {
    inputHandle.setToolTip(null);
    setURI(null,null);
    inputHandle.setTargetBookmark(null);
    inputHandle.setTargetBookmarkType(null);
    inputHandle.setTargetWindow(null);
    inputHandle.setTargetFileType(null);
    inputHandle.setReportName(null);
    inputHandle.setFormatType(null);
    inputHandle.getMember(Action.PARAM_BINDINGS_MEMBER).setValue(null);
    if (DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals(selectedType)) {
      setURI(locationEditor.getText(),(String)locationEditor.getData(ExpressionButtonUtil.EXPR_TYPE));
      if (bTargetEnabled) {
        inputHandle.setTargetWindow(ChoiceSetFactory.getValueFromChoiceSet(targetChooser.getText(),CHOICESET_TARGET));
      }
      saveTooltip();
    }
 else     if (DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK.equals(selectedType) && showBookMark) {
      ExpressionButtonUtil.saveExpressionButtonControl(bookmarkEditor,inputHandle,Action.TARGET_BOOKMARK_MEMBER);
      saveTooltip();
    }
 else     if (DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH.equals(selectedType)) {
      if (reportDesignButton.getSelection()) {
        inputHandle.setTargetFileType(DesignChoiceConstants.ACTION_TARGET_FILE_TYPE_REPORT_DESIGN);
        inputHandle.setReportName(locationEditor.getText());
        for (Iterator<ParamBinding> iter=bindingList.iterator(); iter.hasNext(); ) {
          inputHandle.addParamBinding(iter.next());
        }
      }
 else       if (reportDocumentButton.getSelection()) {
        inputHandle.setTargetFileType(DesignChoiceConstants.ACTION_TARGET_FILE_TYPE_REPORT_DOCUMENT);
        inputHandle.setReportName(documentEditor.getText());
        for (Iterator<ParamBinding> iter=bindingList.iterator(); iter.hasNext(); ) {
          inputHandle.addParamBinding(iter.next());
        }
      }
      if (!StringUtil.isBlank(bookmarkEditor.getText()) && !bookmarkEditor.getText().equals("String_Node_Str")) {
        ExpressionButtonUtil.saveExpressionButtonControl(bookmarkEditor,inputHandle,Action.TARGET_BOOKMARK_MEMBER);
      }
      if (targetBookmarkButton.getSelection()) {
        inputHandle.setTargetBookmarkType(DesignChoiceConstants.ACTION_BOOKMARK_TYPE_BOOKMARK);
      }
 else       if (tocButton.getSelection()) {
        inputHandle.setTargetBookmarkType(DesignChoiceConstants.ACTION_BOOKMARK_TYPE_TOC);
      }
      if (bTargetEnabled) {
        if (sameFrameButton.getSelection()) {
          inputHandle.setTargetWindow(DesignChoiceConstants.TARGET_NAMES_TYPE_SELF);
        }
 else         if (newWindowButton.getSelection()) {
          inputHandle.setTargetWindow(DesignChoiceConstants.TARGET_NAMES_TYPE_BLANK);
        }
 else         if (wholePageButton.getSelection()) {
          inputHandle.setTargetWindow(DesignChoiceConstants.TARGET_NAMES_TYPE_TOP);
        }
 else         if (parentFrameButton.getSelection()) {
          inputHandle.setTargetWindow(DesignChoiceConstants.TARGET_NAMES_TYPE_PARENT);
        }
      }
      int index=targetFormatsChooser.getSelectionIndex();
      if (checkButton.getSelection() && index != -1) {
        inputHandle.setFormatType(targetFormatsChooser.getItem(index));
      }
 else {
        inputHandle.setFormatType(null);
      }
      saveTooltip();
    }
    inputHandle.setLinkType(selectedType);
  }
 catch (  SemanticException e) {
    ExceptionHandler.handle(e);
  }
  setResult(inputHandle);
  super.okPressed();
}