Program: 74653
Project: 74653
Buggy source:
/** 
 * @throws DataException
 */
private void initSaveRowUtil() throws DataException {
  rowExprsOs=streamManager.getOutStream(DataEngineContext.EXPR_VALUE_STREAM,StreamManager.ROOT_STREAM,StreamManager.SELF_SCOPE);
  rowLenOs=streamManager.getOutStream(DataEngineContext.EXPR_ROWLEN_STREAM,StreamManager.ROOT_STREAM,StreamManager.SELF_SCOPE);
  Map bindingNameColumnName=new HashMap();
  Set bindingNamesToSave=new HashSet();
  Iterator it=this.queryDefn.getBindings().keySet().iterator();
  while (it.hasNext()) {
    String key=it.next().toString();
    IBinding binding=(IBinding)this.queryDefn.getBindings().get(key);
    if (this.streamManager.getVersion() >= VersionManager.VERSION_2_2_1_3 && this.queryDefn instanceof QueryDefinition && ((QueryDefinition)this.queryDefn).getQueryResultsID() == null && binding.getAggregatOns().size() == 0 && binding.getAggrFunction() == null) {
      IBaseExpression expr=binding.getExpression();
      if (expr instanceof IScriptExpression) {
        String expression=((IScriptExpression)expr).getText();
        String dataSetColumnName=this.getDataSetColumnName(expression);
        if (dataSetColumnName != null) {
          bindingNameColumnName.put(binding.getBindingName(),dataSetColumnName);
        }
      }
    }
    if (bindingNameColumnName.get(binding.getBindingName()) == null)     bindingNamesToSave.add(binding.getBindingName());
  }
  this.rowSaveUtil=new RowSaveUtil(rowCount,rowExprsOs,rowLenOs,bindingNamesToSave,bindingNameColumnName,this.streamManager.getVersion());
}

Fixed version (ground truth):
/** 
 * @throws DataException
 */
private void initSaveRowUtil() throws DataException {
  rowExprsOs=streamManager.getOutStream(DataEngineContext.EXPR_VALUE_STREAM,StreamManager.ROOT_STREAM,StreamManager.SELF_SCOPE);
  rowLenOs=streamManager.getOutStream(DataEngineContext.EXPR_ROWLEN_STREAM,StreamManager.ROOT_STREAM,StreamManager.SELF_SCOPE);
  Map bindingNameColumnName=new HashMap();
  Set bindingNamesToSave=new HashSet();
  Map bindingNameType=new HashMap();
  Iterator it=this.queryDefn.getBindings().keySet().iterator();
  while (it.hasNext()) {
    String key=it.next().toString();
    IBinding binding=(IBinding)this.queryDefn.getBindings().get(key);
    if (this.streamManager.getVersion() >= VersionManager.VERSION_2_2_1_3 && this.queryDefn instanceof QueryDefinition && ((QueryDefinition)this.queryDefn).getQueryResultsID() == null && binding.getAggregatOns().size() == 0 && binding.getAggrFunction() == null) {
      IBaseExpression expr=binding.getExpression();
      if (expr instanceof IScriptExpression) {
        String expression=((IScriptExpression)expr).getText();
        String dataSetColumnName=this.getDataSetColumnName(expression);
        if (dataSetColumnName != null) {
          bindingNameColumnName.put(binding.getBindingName(),dataSetColumnName);
        }
      }
    }
    if (bindingNameColumnName.get(binding.getBindingName()) == null)     bindingNamesToSave.add(binding.getBindingName());
    bindingNameType.put(binding.getBindingName(),new Integer(binding.getDataType()));
  }
  this.rowSaveUtil=new RowSaveUtil(rowCount,rowExprsOs,rowLenOs,bindingNamesToSave,bindingNameColumnName,bindingNameType,this.streamManager.getVersion());
}