Program: 62852
Project: 62852
Buggy source:
private static FeedbackQuestionAttributes extractFeedbackQuestionData(Map<String,String[]> requestParameters){
  FeedbackQuestionAttributes newQuestion=new FeedbackQuestionAttributes();
  newQuestion.setId(HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_ID));
  Assumption.assertNotNull("String_Node_Str",newQuestion.getId());
  newQuestion.courseId=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.COURSE_ID);
  Assumption.assertNotNull("String_Node_Str",newQuestion.courseId);
  newQuestion.feedbackSessionName=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_SESSION_NAME);
  Assumption.assertNotNull("String_Node_Str",newQuestion.feedbackSessionName);
  String giverType=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_GIVERTYPE);
  if (giverType != null) {
    newQuestion.giverType=FeedbackParticipantType.valueOf(giverType);
  }
  String recipientType=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_RECIPIENTTYPE);
  if (recipientType != null) {
    newQuestion.recipientType=FeedbackParticipantType.valueOf(recipientType);
  }
  String questionNumber=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_NUMBER);
  Assumption.assertNotNull("String_Node_Str",questionNumber);
  newQuestion.questionNumber=Integer.parseInt(questionNumber);
  Assumption.assertTrue("String_Node_Str",newQuestion.questionNumber >= 0);
  String nEntityTypes=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_NUMBEROFENTITIESTYPE);
  if (numberOfEntitiesIsUserDefined(newQuestion.recipientType,nEntityTypes)) {
    String nEntities;
    nEntities=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_NUMBEROFENTITIES);
    Assumption.assertNotNull(nEntities);
    newQuestion.numberOfEntitiesToGiveFeedbackTo=Integer.parseInt(nEntities);
  }
 else {
    newQuestion.numberOfEntitiesToGiveFeedbackTo=Const.MAX_POSSIBLE_RECIPIENTS;
  }
  newQuestion.showResponsesTo=getParticipantListFromParams(HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_SHOWRESPONSESTO));
  newQuestion.showGiverNameTo=getParticipantListFromParams(HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_SHOWGIVERTO));
  newQuestion.showRecipientNameTo=getParticipantListFromParams(HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_SHOWRECIPIENTTO));
  String questionType=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_TYPE);
  Assumption.assertNotNull(questionType);
  newQuestion.questionType=FeedbackQuestionType.valueOf(questionType);
  String questionText=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_TEXT);
  if (questionText != null) {
    FeedbackAbstractQuestionDetails questionDetails=FeedbackAbstractQuestionDetails.createQuestionDetails(requestParameters,newQuestion.questionType);
    newQuestion.setQuestionDetails(questionDetails);
  }
  return newQuestion;
}

Fixed version (ground truth):
private static FeedbackQuestionAttributes extractFeedbackQuestionData(Map<String,String[]> requestParameters){
  FeedbackQuestionAttributes newQuestion=new FeedbackQuestionAttributes();
  newQuestion.setId(HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_ID));
  Assumption.assertNotNull("String_Node_Str",newQuestion.getId());
  newQuestion.courseId=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.COURSE_ID);
  Assumption.assertNotNull("String_Node_Str",newQuestion.courseId);
  newQuestion.feedbackSessionName=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_SESSION_NAME);
  Assumption.assertNotNull("String_Node_Str",newQuestion.feedbackSessionName);
  String giverType=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_GIVERTYPE);
  if (giverType != null) {
    newQuestion.giverType=FeedbackParticipantType.valueOf(giverType);
  }
  String recipientType=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_RECIPIENTTYPE);
  if (recipientType != null) {
    newQuestion.recipientType=FeedbackParticipantType.valueOf(recipientType);
  }
  String questionNumber=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_NUMBER);
  Assumption.assertNotNull("String_Node_Str",questionNumber);
  newQuestion.questionNumber=Integer.parseInt(questionNumber);
  Assumption.assertTrue("String_Node_Str",newQuestion.questionNumber >= 0);
  String nEntityTypes=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_NUMBEROFENTITIESTYPE);
  if (numberOfEntitiesIsUserDefined(newQuestion.recipientType,nEntityTypes)) {
    String nEntities;
    nEntities=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_NUMBEROFENTITIES);
    Assumption.assertNotNull(nEntities);
    newQuestion.numberOfEntitiesToGiveFeedbackTo=Integer.parseInt(nEntities);
  }
 else {
    newQuestion.numberOfEntitiesToGiveFeedbackTo=Const.MAX_POSSIBLE_RECIPIENTS;
  }
  newQuestion.showResponsesTo=getParticipantListFromParams(HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_SHOWRESPONSESTO));
  newQuestion.showGiverNameTo=getParticipantListFromParams(HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_SHOWGIVERTO));
  newQuestion.showRecipientNameTo=getParticipantListFromParams(HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_SHOWRECIPIENTTO));
  String questionType=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_TYPE);
  Assumption.assertNotNull(questionType);
  newQuestion.questionType=FeedbackQuestionType.valueOf(questionType);
  String questionText=HttpRequestHelper.getValueFromParamMap(requestParameters,Const.ParamsNames.FEEDBACK_QUESTION_TEXT);
  if (questionText != null && !questionText.isEmpty()) {
    FeedbackAbstractQuestionDetails questionDetails=FeedbackAbstractQuestionDetails.createQuestionDetails(requestParameters,newQuestion.questionType);
    newQuestion.setQuestionDetails(questionDetails);
  }
  return newQuestion;
}