Program: 67464
Project: 67464
Buggy source:
private void initParamterBindings(){
  if (targetReportHandle != null) {
    bindingList.clear();
    parameterList.clear();
    String errorMessage=null;
    String newFilename=null;
    if (reportDesignButton.getSelection()) {
      newFilename=locationEditor.getText();
    }
 else     if (reportDocumentButton.getSelection()) {
      newFilename=documentEditor.getText();
    }
    if (newFilename == null || newFilename.length() == 0) {
      errorMessage=ERROR_MSG_REPORT_REQUIRED;
    }
 else {
      ReportDesignHandle tmpReportDesign=null;
      if (targetReportHandle instanceof IReportDocument) {
        tmpReportDesign=((IReportDocument)targetReportHandle).getReportDesign();
      }
 else       if (targetReportHandle instanceof ReportDesignHandle) {
        tmpReportDesign=(ReportDesignHandle)targetReportHandle;
      }
      if (tmpReportDesign != null) {
        if (targetReportHandle instanceof ReportDesignHandle) {
          paramTypes.clear();
          for (Iterator iter=((ReportDesignHandle)tmpReportDesign).getAllParameters().iterator(); iter.hasNext(); ) {
            Object obj=iter.next();
            if (obj instanceof ParameterHandle) {
              ParameterHandle param=(ParameterHandle)obj;
              parameterList.add(param);
              if (param instanceof ScalarParameterHandle) {
                paramTypes.put(param.getName(),((ScalarParameterHandle)param).getDataType());
              }
            }
          }
        }
      }
    }
    if (errorMessage != null) {
      messageLine.setText(errorMessage);
      messageLine.setImage(ERROR_ICON);
    }
 else {
      messageLine.setText("String_Node_Str");
      messageLine.setImage(null);
    }
    updateButtons();
  }
  bindingList.clear();
  for (Iterator iter=inputHandle.paramBindingsIterator(); iter.hasNext(); ) {
    ParamBindingHandle handle=(ParamBindingHandle)iter.next();
    bindingList.add((ParamBinding)handle.getStructure());
  }
  paramBindingTable.getTable().setEnabled(true);
  paramBindingTable.refresh();
}

Fixed version (ground truth):
private void initParamterBindings(){
  if (targetReportHandle != null) {
    bindingList.clear();
    parameterList.clear();
    String errorMessage=null;
    String newFilename=null;
    if (reportDesignButton.getSelection()) {
      newFilename=locationEditor.getText();
    }
 else     if (reportDocumentButton.getSelection()) {
      newFilename=documentEditor.getText();
    }
    if (newFilename == null || newFilename.length() == 0) {
      errorMessage=ERROR_MSG_REPORT_REQUIRED;
    }
 else {
      ReportDesignHandle tmpReportDesign=null;
      if (targetReportHandle instanceof IReportDocument) {
        tmpReportDesign=((IReportDocument)targetReportHandle).getReportDesign();
      }
 else       if (targetReportHandle instanceof ReportDesignHandle) {
        tmpReportDesign=(ReportDesignHandle)targetReportHandle;
      }
      if (tmpReportDesign != null) {
        if (targetReportHandle instanceof ReportDesignHandle) {
          paramTypes.clear();
          for (Iterator iter=tmpReportDesign.getAllParameters().iterator(); iter.hasNext(); ) {
            Object obj=iter.next();
            if (obj instanceof ParameterHandle) {
              ParameterHandle param=(ParameterHandle)obj;
              parameterList.add(param);
              if (param instanceof ScalarParameterHandle) {
                paramTypes.put(param.getName(),((ScalarParameterHandle)param).getDataType());
              }
            }
          }
        }
      }
    }
    if (errorMessage != null) {
      messageLine.setText(errorMessage);
      messageLine.setImage(ERROR_ICON);
    }
 else {
      messageLine.setText("String_Node_Str");
      messageLine.setImage(null);
    }
    updateButtons();
  }
  bindingList.clear();
  for (Iterator iter=inputHandle.paramBindingsIterator(); iter.hasNext(); ) {
    ParamBindingHandle handle=(ParamBindingHandle)iter.next();
    bindingList.add((ParamBinding)handle.getStructure());
  }
  paramBindingTable.getTable().setEnabled(true);
  paramBindingTable.refresh();
}