Program: 38998
Project: 38998
Buggy source:
public UnsupervisedFeedbackHelper(SolrParams params,SolrIndexSearcher searcher,SchemaField uniqueKeyField,QParser qParser){
  this.searcher=searcher;
  this.qParser=qParser;
  this.reader=searcher.getIndexReader();
  this.uniqueKeyField=uniqueKeyField;
  this.needDocSet=params.getBool(FacetParams.FACET,false);
  SolrParams required=params.required();
  String[] fields=splitList.split(required.get(UnsupervisedFeedbackParams.SIMILARITY_FIELDS));
  if (fields.length < 1) {
    throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,"String_Node_Str" + UnsupervisedFeedbackParams.SIMILARITY_FIELDS);
  }
  this.relevancyFeedback=new RelevancyFeedback(reader);
  relevancyFeedback.setFieldNames(fields);
  final String sPayloadFieldList=params.get(UnsupervisedFeedbackParams.PAYLOAD_FIELDS);
  if (sPayloadFieldList != null && sPayloadFieldList.trim().length() > 0) {
    String[] payloadFields=splitList.split(sPayloadFieldList);
    relevancyFeedback.setPayloadFields(payloadFields);
  }
  relevancyFeedback.setAnalyzer(searcher.getSchema().getIndexAnalyzer());
  relevancyFeedback.setMinTermFreq(params.getInt(UnsupervisedFeedbackParams.MIN_TERM_FREQ,RelevancyFeedback.DEFAULT_MIN_TERM_FREQ));
  relevancyFeedback.setMinDocFreq(params.getInt(UnsupervisedFeedbackParams.MIN_DOC_FREQ,RelevancyFeedback.DEFAULT_MIN_DOC_FREQ));
  relevancyFeedback.setMaxDocFreq(params.getInt(UnsupervisedFeedbackParams.MAX_DOC_FREQ,RelevancyFeedback.DEFAULT_MAX_DOC_FREQ));
  relevancyFeedback.setMinWordLen(params.getInt(UnsupervisedFeedbackParams.MIN_WORD_LEN,RelevancyFeedback.DEFAULT_MIN_WORD_LENGTH));
  relevancyFeedback.setMaxWordLen(params.getInt(UnsupervisedFeedbackParams.MAX_WORD_LEN,RelevancyFeedback.DEFAULT_MAX_WORD_LENGTH));
  relevancyFeedback.setBoostFn(params.get(UnsupervisedFeedbackParams.BOOST_FN));
  relevancyFeedback.setNormalizeFieldBoosts(params.getBool(UnsupervisedFeedbackParams.NORMALIZE_FIELD_BOOSTS,RelevancyFeedback.DEFAULT_NORMALIZE_FIELD_BOOSTS));
  relevancyFeedback.setMaxQueryTermsPerField(params.getInt(UnsupervisedFeedbackParams.MAX_QUERY_TERMS_PER_FIELD,RelevancyFeedback.DEFAULT_MAX_QUERY_TERMS_PER_FIELD));
  relevancyFeedback.setMaxNumTokensParsedPerField(params.getInt(UnsupervisedFeedbackParams.MAX_NUM_TOKENS_PARSED_PER_FIELD,RelevancyFeedback.DEFAULT_MAX_NUM_TOKENS_PARSED_PER_FIELD));
  relevancyFeedback.setLogTf(params.getBool(UnsupervisedFeedbackParams.IS_LOG_TF,RelevancyFeedback.DEFAULT_IS_LOG_TF));
  relevancyFeedback.setBoostFields(SolrPluginUtils.parseFieldBoosts(params.getParams(UnsupervisedFeedbackParams.QF)));
}

Fixed version (ground truth):
public UnsupervisedFeedbackHelper(SolrParams params,SolrIndexSearcher searcher,SchemaField uniqueKeyField,QParser qParser){
  this.searcher=searcher;
  this.qParser=qParser;
  this.reader=searcher.getIndexReader();
  this.uniqueKeyField=uniqueKeyField;
  this.needDocSet=params.getBool(FacetParams.FACET,false);
  SolrParams required=params.required();
  String[] fields=splitList.split(required.get(UnsupervisedFeedbackParams.SIMILARITY_FIELDS));
  if (fields.length < 1) {
    throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,"String_Node_Str" + UnsupervisedFeedbackParams.SIMILARITY_FIELDS);
  }
  this.relevancyFeedback=new RelevancyFeedback(reader);
  relevancyFeedback.setFieldNames(fields);
  final String sPayloadFieldList=params.get(UnsupervisedFeedbackParams.PAYLOAD_FIELDS);
  if (sPayloadFieldList != null && sPayloadFieldList.trim().length() > 0) {
    String[] payloadFields=splitList.split(sPayloadFieldList);
    relevancyFeedback.setPayloadFields(payloadFields);
  }
  relevancyFeedback.setAnalyzer(searcher.getSchema().getIndexAnalyzer());
  relevancyFeedback.setMm(params.get(UnsupervisedFeedbackParams.MM,RelevancyFeedback.DEFAULT_MM));
  relevancyFeedback.setMinTermFreq(params.getInt(UnsupervisedFeedbackParams.MIN_TERM_FREQ,RelevancyFeedback.DEFAULT_MIN_TERM_FREQ));
  relevancyFeedback.setMinDocFreq(params.getInt(UnsupervisedFeedbackParams.MIN_DOC_FREQ,RelevancyFeedback.DEFAULT_MIN_DOC_FREQ));
  relevancyFeedback.setMaxDocFreq(params.getInt(UnsupervisedFeedbackParams.MAX_DOC_FREQ,RelevancyFeedback.DEFAULT_MAX_DOC_FREQ));
  relevancyFeedback.setMinWordLen(params.getInt(UnsupervisedFeedbackParams.MIN_WORD_LEN,RelevancyFeedback.DEFAULT_MIN_WORD_LENGTH));
  relevancyFeedback.setMaxWordLen(params.getInt(UnsupervisedFeedbackParams.MAX_WORD_LEN,RelevancyFeedback.DEFAULT_MAX_WORD_LENGTH));
  relevancyFeedback.setBoostFn(params.get(UnsupervisedFeedbackParams.BOOST_FN));
  relevancyFeedback.setNormalizeFieldBoosts(params.getBool(UnsupervisedFeedbackParams.NORMALIZE_FIELD_BOOSTS,RelevancyFeedback.DEFAULT_NORMALIZE_FIELD_BOOSTS));
  relevancyFeedback.setMaxQueryTermsPerField(params.getInt(UnsupervisedFeedbackParams.MAX_QUERY_TERMS_PER_FIELD,RelevancyFeedback.DEFAULT_MAX_QUERY_TERMS_PER_FIELD));
  relevancyFeedback.setMaxNumTokensParsedPerField(params.getInt(UnsupervisedFeedbackParams.MAX_NUM_TOKENS_PARSED_PER_FIELD,RelevancyFeedback.DEFAULT_MAX_NUM_TOKENS_PARSED_PER_FIELD));
  relevancyFeedback.setLogTf(params.getBool(UnsupervisedFeedbackParams.IS_LOG_TF,RelevancyFeedback.DEFAULT_IS_LOG_TF));
  relevancyFeedback.setBoostFields(SolrPluginUtils.parseFieldBoosts(params.getParams(UnsupervisedFeedbackParams.QF)));
}