Program: 62876
Project: 62876
Buggy source:
@Override protected ActionResult execute() throws EntityDoesNotExistException {
  String courseId=getRequestParamValue(Const.ParamsNames.COURSE_ID);
  String feedbackSessionName=getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);
  Assumption.assertNotNull(courseId);
  Assumption.assertNotNull(feedbackSessionName);
  statusToAdmin="String_Node_Str" + "String_Node_Str" + feedbackSessionName + "String_Node_Str"+ "String_Node_Str"+ courseId;
  InstructorAttributes instructor=logic.getInstructorForGoogleId(courseId,account.googleId);
  FeedbackSessionAttributes session=logic.getFeedbackSession(feedbackSessionName,courseId);
  boolean isCreatorOnly=true;
  new GateKeeper().verifyAccessible(instructor,session,!isCreatorOnly);
  InstructorFeedbackResultsPageData data=new InstructorFeedbackResultsPageData(account);
  data.selectedSection=getRequestParamValue(Const.ParamsNames.FEEDBACK_RESULTS_GROUPBYSECTION);
  if (data.selectedSection == null) {
    data.selectedSection=ALL_SECTION_OPTION;
  }
  data.instructor=instructor;
  data.showStats=getRequestParamValue(Const.ParamsNames.FEEDBACK_RESULTS_SHOWSTATS);
  data.groupByTeam=getRequestParamValue(Const.ParamsNames.FEEDBACK_RESULTS_GROUPBYTEAM);
  data.sortType=getRequestParamValue(Const.ParamsNames.FEEDBACK_RESULTS_SORTTYPE);
  if (data.sortType == null) {
    data.showStats=new String("String_Node_Str");
    data.sortType=new String("String_Node_Str");
  }
  data.sections=logic.getSectionNamesForCourse(courseId);
  if (data.selectedSection.equals(ALL_SECTION_OPTION)) {
    data.bundle=logic.getFeedbackSessionResultsForInstructorWithinRange(feedbackSessionName,courseId,data.instructor.email,500);
  }
 else   if (data.sortType.equals("String_Node_Str")) {
    data.bundle=logic.getFeedbackSessionResultsForInstructorInSection(feedbackSessionName,courseId,data.instructor.email,data.selectedSection);
  }
 else   if (data.sortType.equals("String_Node_Str") || data.sortType.equals("String_Node_Str")) {
    data.bundle=logic.getFeedbackSessionResultsForInstructorFromSection(feedbackSessionName,courseId,data.instructor.email,data.selectedSection);
  }
 else   if (data.sortType.equals("String_Node_Str") || data.sortType.equals("String_Node_Str")) {
    data.bundle=logic.getFeedbackSessionResultsForInstructorToSection(feedbackSessionName,courseId,data.instructor.email,data.selectedSection);
  }
  if (data.bundle == null) {
    throw new EntityDoesNotExistException("String_Node_Str" + feedbackSessionName + "String_Node_Str"+ courseId+ "String_Node_Str");
  }
  Iterator<FeedbackResponseAttributes> iterResponse=data.bundle.responses.iterator();
  while (iterResponse.hasNext()) {
    FeedbackResponseAttributes response=iterResponse.next();
    if ((!data.instructor.isAllowedForPrivilege(response.giverSection,response.feedbackSessionName,Const.ParamsNames.INSTRUCTOR_PERMISSION_VIEW_SESSION_IN_SECTIONS)) || !(data.instructor.isAllowedForPrivilege(response.recipientSection,response.feedbackSessionName,Const.ParamsNames.INSTRUCTOR_PERMISSION_VIEW_SESSION_IN_SECTIONS))) {
      data.bundle.responseComments.remove(response.getId());
      iterResponse.remove();
    }
  }
switch (data.sortType) {
case "String_Node_Str":
    return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_QUESTION,data);
case "String_Node_Str":
  return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_RECIPIENT_GIVER_QUESTION,data);
case "String_Node_Str":
return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_GIVER_RECIPIENT_QUESTION,data);
case "String_Node_Str":
return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_RECIPIENT_QUESTION_GIVER,data);
case "String_Node_Str":
return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_GIVER_QUESTION_RECIPIENT,data);
default :
data.sortType="String_Node_Str";
return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_RECIPIENT_GIVER_QUESTION,data);
}
}

Fixed version (ground truth):
@Override protected ActionResult execute() throws EntityDoesNotExistException {
  String courseId=getRequestParamValue(Const.ParamsNames.COURSE_ID);
  String feedbackSessionName=getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);
  Assumption.assertNotNull(courseId);
  Assumption.assertNotNull(feedbackSessionName);
  statusToAdmin="String_Node_Str" + "String_Node_Str" + feedbackSessionName + "String_Node_Str"+ "String_Node_Str"+ courseId;
  InstructorAttributes instructor=logic.getInstructorForGoogleId(courseId,account.googleId);
  FeedbackSessionAttributes session=logic.getFeedbackSession(feedbackSessionName,courseId);
  boolean isCreatorOnly=true;
  new GateKeeper().verifyAccessible(instructor,session,!isCreatorOnly);
  InstructorFeedbackResultsPageData data=new InstructorFeedbackResultsPageData(account);
  data.selectedSection=getRequestParamValue(Const.ParamsNames.FEEDBACK_RESULTS_GROUPBYSECTION);
  if (data.selectedSection == null) {
    data.selectedSection=ALL_SECTION_OPTION;
  }
  data.instructor=instructor;
  data.showStats=getRequestParamValue(Const.ParamsNames.FEEDBACK_RESULTS_SHOWSTATS);
  data.groupByTeam=getRequestParamValue(Const.ParamsNames.FEEDBACK_RESULTS_GROUPBYTEAM);
  data.sortType=getRequestParamValue(Const.ParamsNames.FEEDBACK_RESULTS_SORTTYPE);
  if (data.sortType == null) {
    data.showStats=new String("String_Node_Str");
    data.sortType=new String("String_Node_Str");
  }
  data.sections=logic.getSectionNamesForCourse(courseId);
  if (data.selectedSection.equals(ALL_SECTION_OPTION)) {
    data.bundle=logic.getFeedbackSessionResultsForInstructorWithinRange(feedbackSessionName,courseId,data.instructor.email,5);
  }
 else   if (data.sortType.equals("String_Node_Str")) {
    data.bundle=logic.getFeedbackSessionResultsForInstructorInSection(feedbackSessionName,courseId,data.instructor.email,data.selectedSection);
  }
 else   if (data.sortType.equals("String_Node_Str") || data.sortType.equals("String_Node_Str")) {
    data.bundle=logic.getFeedbackSessionResultsForInstructorFromSection(feedbackSessionName,courseId,data.instructor.email,data.selectedSection);
  }
 else   if (data.sortType.equals("String_Node_Str") || data.sortType.equals("String_Node_Str")) {
    data.bundle=logic.getFeedbackSessionResultsForInstructorToSection(feedbackSessionName,courseId,data.instructor.email,data.selectedSection);
  }
  if (data.bundle == null) {
    throw new EntityDoesNotExistException("String_Node_Str" + feedbackSessionName + "String_Node_Str"+ courseId+ "String_Node_Str");
  }
  Iterator<FeedbackResponseAttributes> iterResponse=data.bundle.responses.iterator();
  while (iterResponse.hasNext()) {
    FeedbackResponseAttributes response=iterResponse.next();
    if ((!data.instructor.isAllowedForPrivilege(response.giverSection,response.feedbackSessionName,Const.ParamsNames.INSTRUCTOR_PERMISSION_VIEW_SESSION_IN_SECTIONS)) || !(data.instructor.isAllowedForPrivilege(response.recipientSection,response.feedbackSessionName,Const.ParamsNames.INSTRUCTOR_PERMISSION_VIEW_SESSION_IN_SECTIONS))) {
      data.bundle.responseComments.remove(response.getId());
      iterResponse.remove();
    }
  }
switch (data.sortType) {
case "String_Node_Str":
    return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_QUESTION,data);
case "String_Node_Str":
  return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_RECIPIENT_GIVER_QUESTION,data);
case "String_Node_Str":
return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_GIVER_RECIPIENT_QUESTION,data);
case "String_Node_Str":
return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_RECIPIENT_QUESTION_GIVER,data);
case "String_Node_Str":
return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_GIVER_QUESTION_RECIPIENT,data);
default :
data.sortType="String_Node_Str";
return createShowPageResult(Const.ViewURIs.INSTRUCTOR_FEEDBACK_RESULTS_BY_RECIPIENT_GIVER_QUESTION,data);
}
}