Source:
protected void checkAdditionalConstraints() { InstructorAttributes instructor = logic.getInstructorForGoogleId(courseId, account.googleId); int numOfQuestionsToGet = data.bundle.questionResponseBundle.size(); for (int questionIndx = 1; questionIndx <= numOfQuestionsToGet; questionIndx++) { String questionId = HttpRequestHelper.getValueFromParamMap( requestParameters, Const.ParamsNames.FEEDBACK_QUESTION_ID + "-" + questionIndx); if (questionId == null) { continue; } FeedbackQuestionAttributes questionAttributes = data.bundle.getQuestionAttributes(questionId); if (questionAttributes == null){ statusToUser.add("The feedback session or questions may have changed while you were submitting. Please check your responses to make sure they are saved correctly."); isError = true; log.warning("Question not found. (deleted or invalid id passed?) id: "+ questionId + " index: " + questionIndx); continue; } boolean isGiverVisibleToInstructors = questionAttributes.showGiverNameTo.contains(FeedbackParticipantType.INSTRUCTORS); boolean isRecipientVisibleToInstructors = questionAttributes.showRecipientNameTo.contains(FeedbackParticipantType.INSTRUCTORS); boolean isResponseVisibleToInstructors = questionAttributes.showResponsesTo.contains(FeedbackParticipantType.INSTRUCTORS); if (!isGiverVisibleToInstructors || !isRecipientVisibleToInstructors || !isResponseVisibleToInstructors) { statusToUser.add(""); isError = true; throw new UnauthorizedAccessException( "Feedback session [" + feedbackSessionName + "] question [" + questionAttributes.getId() + "] is not accessible to instructor ["+ instructor.email + "]"); } } }

Target:
protected void checkAdditionalConstraints() { InstructorAttributes instructor = logic.getInstructorForGoogleId(courseId, account.googleId); int numOfQuestionsToGet = data.bundle.questionResponseBundle.size(); for (int questionIndx = 1; questionIndx <= numOfQuestionsToGet; questionIndx++) { String questionId = HttpRequestHelper.getValueFromParamMap( requestParameters, Const.ParamsNames.FEEDBACK_QUESTION_ID + "-" + questionIndx); if (questionId == null) { continue; } FeedbackQuestionAttributes questionAttributes = data.bundle.getQuestionAttributes(questionId); if (questionAttributes == null){ statusToUser.add("The feedback session or questions may have changed while you were submitting. Please check your responses to make sure they are saved correctly."); isError = true; log.warning("Question not found. (deleted or invalid id passed?) id: "+ questionId + " index: " + questionIndx); continue; } boolean isGiverVisibleToInstructors = questionAttributes.showGiverNameTo.contains(FeedbackParticipantType.INSTRUCTORS); boolean isRecipientVisibleToInstructors = questionAttributes.showRecipientNameTo.contains(FeedbackParticipantType.INSTRUCTORS); boolean isResponseVisibleToInstructors = questionAttributes.showResponsesTo.contains(FeedbackParticipantType.INSTRUCTORS); if (!isGiverVisibleToInstructors || !isRecipientVisibleToInstructors || !isResponseVisibleToInstructors) { isError = true; throw new UnauthorizedAccessException( "Feedback session [" + feedbackSessionName + "] question [" + questionAttributes.getId() + "] is not accessible to instructor ["+ instructor.email + "]"); } } }