Program: 62804
Project: 62804
Buggy source:
private void buildExistingQuestionForm(String feedbackSessionName,int questionsSize,Map<String,Boolean> questionHasResponses,String courseId,FeedbackQuestionAttributes question){
  FeedbackQuestionEditForm qnForm=new FeedbackQuestionEditForm();
  qnForm.setAction(Const.ActionURIs.INSTRUCTOR_FEEDBACK_QUESTION_EDIT);
  qnForm.setCourseId(courseId);
  qnForm.setFeedbackSessionName(feedbackSessionName);
  qnForm.setQuestion(question);
  qnForm.setQuestionNumberSuffix("String_Node_Str" + question.questionNumber);
  qnForm.setQuestionNumberOptions(getQuestionNumberOptions(questionsSize));
  FeedbackQuestionFeedbackPathSettings feedbackPathSettings=new FeedbackQuestionFeedbackPathSettings();
  feedbackPathSettings.setGiverParticipantOptions(getParticipantOptions(question,true));
  feedbackPathSettings.setRecipientParticipantOptions(getParticipantOptions(question,false));
  qnForm.setFeedbackPathSettings(feedbackPathSettings);
  Map<String,Boolean> isGiverNameVisibleFor=new HashMap<String,Boolean>();
  for (  FeedbackParticipantType giverType : question.showGiverNameTo) {
    isGiverNameVisibleFor.put(giverType.name(),true);
  }
  Map<String,Boolean> isRecipientNameVisibleFor=new HashMap<String,Boolean>();
  for (  FeedbackParticipantType recipientType : question.showRecipientNameTo) {
    isRecipientNameVisibleFor.put(recipientType.name(),true);
  }
  Map<String,Boolean> isResponsesVisibleFor=new HashMap<String,Boolean>();
  for (  FeedbackParticipantType participantType : question.showResponsesTo) {
    isResponsesVisibleFor.put(participantType.name(),true);
  }
  FeedbackQuestionVisibilitySettings visibilitySettings=new FeedbackQuestionVisibilitySettings(question.getVisibilityMessage(),isResponsesVisibleFor,isGiverNameVisibleFor,isRecipientNameVisibleFor);
  qnForm.setVisibilitySettings(visibilitySettings);
  boolean isNumberOfEntitiesToGiveFeedbackToChecked=question.numberOfEntitiesToGiveFeedbackTo == Const.MAX_POSSIBLE_RECIPIENTS;
  feedbackPathSettings.setNumberOfEntitiesToGiveFeedbackToChecked(isNumberOfEntitiesToGiveFeedbackToChecked);
  feedbackPathSettings.setNumOfEntitiesToGiveFeedbackToValue(isNumberOfEntitiesToGiveFeedbackToChecked ? 1 : question.numberOfEntitiesToGiveFeedbackTo);
  qnForm.setQuestionHasResponses(questionHasResponses.get(question.getId()));
  qnForm.setQuestionSpecificEditFormHtml(question.getQuestionDetails().getQuestionSpecificEditFormHtml(question.questionNumber));
  qnForm.setEditable(false);
  qnForms.add(qnForm);
}

Fixed version (ground truth):
private void buildExistingQuestionForm(String feedbackSessionName,int questionsSize,Map<String,Boolean> questionHasResponses,String courseId,FeedbackQuestionAttributes question){
  FeedbackQuestionEditForm qnForm=new FeedbackQuestionEditForm();
  qnForm.setAction(Const.ActionURIs.INSTRUCTOR_FEEDBACK_QUESTION_EDIT);
  qnForm.setCourseId(courseId);
  qnForm.setFeedbackSessionName(feedbackSessionName);
  qnForm.setQuestion(question);
  qnForm.setQuestionNumberSuffix("String_Node_Str" + question.questionNumber);
  qnForm.setQuestionNumberOptions(getQuestionNumberOptions(questionsSize));
  FeedbackQuestionFeedbackPathSettings feedbackPathSettings=new FeedbackQuestionFeedbackPathSettings();
  feedbackPathSettings.setGiverParticipantOptions(getParticipantOptions(question,true));
  feedbackPathSettings.setRecipientParticipantOptions(getParticipantOptions(question,false));
  boolean isNumberOfEntitiesToGiveFeedbackToChecked=question.numberOfEntitiesToGiveFeedbackTo != Const.MAX_POSSIBLE_RECIPIENTS;
  feedbackPathSettings.setNumberOfEntitiesToGiveFeedbackToChecked(isNumberOfEntitiesToGiveFeedbackToChecked);
  feedbackPathSettings.setNumOfEntitiesToGiveFeedbackToValue(isNumberOfEntitiesToGiveFeedbackToChecked ? question.numberOfEntitiesToGiveFeedbackTo : 1);
  qnForm.setFeedbackPathSettings(feedbackPathSettings);
  Map<String,Boolean> isGiverNameVisibleFor=new HashMap<String,Boolean>();
  for (  FeedbackParticipantType giverType : question.showGiverNameTo) {
    isGiverNameVisibleFor.put(giverType.name(),true);
  }
  Map<String,Boolean> isRecipientNameVisibleFor=new HashMap<String,Boolean>();
  for (  FeedbackParticipantType recipientType : question.showRecipientNameTo) {
    isRecipientNameVisibleFor.put(recipientType.name(),true);
  }
  Map<String,Boolean> isResponsesVisibleFor=new HashMap<String,Boolean>();
  for (  FeedbackParticipantType participantType : question.showResponsesTo) {
    isResponsesVisibleFor.put(participantType.name(),true);
  }
  FeedbackQuestionVisibilitySettings visibilitySettings=new FeedbackQuestionVisibilitySettings(question.getVisibilityMessage(),isResponsesVisibleFor,isGiverNameVisibleFor,isRecipientNameVisibleFor);
  qnForm.setVisibilitySettings(visibilitySettings);
  qnForm.setQuestionHasResponses(questionHasResponses.get(question.getId()));
  qnForm.setQuestionSpecificEditFormHtml(question.getQuestionDetails().getQuestionSpecificEditFormHtml(question.questionNumber));
  qnForm.setEditable(false);
  qnForms.add(qnForm);
}