Program: 75680
Project: 75680
Buggy source:
/** 
 * Convert Scalar Parameter Definition
 * @param engineParam
 * @param group
 * @return
 */
private static ParameterDefinition convertScalarParameter(IScalarParameterDefn engineParam,ParameterGroupDefinition group){
  Object handle=engineParam.getHandle();
  ScalarParameterHandle scalarParamHandle=null;
  if (handle instanceof ScalarParameterHandle)   scalarParamHandle=(ScalarParameterHandle)handle;
  String name=engineParam.getName();
  long id=scalarParamHandle != null ? scalarParamHandle.getID() : 0L;
  String pattern=scalarParamHandle == null ? "String_Node_Str" : scalarParamHandle.getPattern();
  String displayFormat=engineParam.getDisplayFormat();
  String displayName=engineParam.getDisplayName();
  String helpText=engineParam.getHelpText();
  String promptText=engineParam.getPromptText();
  int dataType=engineParam.getDataType();
  String valueExpr=scalarParamHandle == null ? null : scalarParamHandle.getValueExpr();
  int controlType=engineParam.getControlType();
  boolean hidden=engineParam.isHidden();
  boolean allowNull=engineParam.allowNull();
  boolean allowBlank=engineParam.allowBlank();
  boolean isRequired=engineParam.isRequired();
  boolean mustMatch=scalarParamHandle == null ? false : scalarParamHandle.isMustMatch();
  boolean concealValue=engineParam.isValueConcealed();
  ParameterDefinition param=new ParameterDefinition(id,name,pattern,displayFormat,displayName,helpText,promptText,dataType,valueExpr,controlType,hidden,allowNull,allowBlank,isRequired,mustMatch,concealValue,group,null);
  return param;
}

Fixed version (ground truth):
/** 
 * Convert Scalar Parameter Definition
 * @param engineParam
 * @param group
 * @return
 */
private static ParameterDefinition convertScalarParameter(IScalarParameterDefn engineParam,ParameterGroupDefinition group){
  Object handle=engineParam.getHandle();
  ScalarParameterHandle scalarParamHandle=null;
  if (handle instanceof ScalarParameterHandle)   scalarParamHandle=(ScalarParameterHandle)handle;
  String name=engineParam.getName();
  long id=scalarParamHandle != null ? scalarParamHandle.getID() : 0L;
  String pattern=scalarParamHandle == null ? "String_Node_Str" : scalarParamHandle.getPattern();
  String displayFormat=engineParam.getDisplayFormat();
  String displayName=engineParam.getDisplayName();
  String helpText=engineParam.getHelpText();
  String promptText=engineParam.getPromptText();
  int dataType=engineParam.getDataType();
  String valueExpr=scalarParamHandle == null ? null : scalarParamHandle.getValueExpr();
  int controlType=engineParam.getControlType();
  boolean hidden=engineParam.isHidden();
  boolean allowNull=engineParam.allowNull();
  boolean allowBlank=engineParam.allowBlank();
  boolean isRequired=engineParam.isRequired();
  boolean mustMatch=scalarParamHandle == null ? false : scalarParamHandle.isMustMatch();
  boolean concealValue=engineParam.isValueConcealed();
  boolean distinct=scalarParamHandle == null ? false : scalarParamHandle.distinct();
  ParameterDefinition param=new ParameterDefinition(id,name,pattern,displayFormat,displayName,helpText,promptText,dataType,valueExpr,controlType,hidden,allowNull,allowBlank,isRequired,mustMatch,concealValue,distinct,group,null);
  return param;
}