Source:
<code>protected ActionResult execute() throws EntityDoesNotExistException { String courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID); String feedbackSessionName = getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME); String previewStudentEmail = getRequestParamValue(Const.ParamsNames.PREVIEWAS); <START> new GateKeeper().verifyAccessible( <END> logic.getInstructorForGoogleId(courseId, account.googleId), logic.getFeedbackSession(feedbackSessionName, courseId), true); StudentAttributes previewStudent = logic.getStudentForEmail(courseId, previewStudentEmail); if (previewStudent == null) { throw new EntityDoesNotExistException("Student Email " + previewStudentEmail + " does not exist in " + courseId + "."); } FeedbackSubmissionEditPageData data = new FeedbackSubmissionEditPageData(account); data.bundle = logic.getFeedbackSessionQuestionsBundleForStudent( feedbackSessionName, courseId, previewStudent.email); if (data.bundle == null) { throw new EntityDoesNotExistException("Feedback session " + feedbackSessionName + " does not exist in " + courseId + "."); } data.isSessionOpenForSubmission = true; data.isPreview = true; data.previewStudent = previewStudent; data.bundle.resetAllResponses(); statusToAdmin = "Preview feedback session as student (" + previewStudent.email + ")<br>" + "Session Name: " + feedbackSessionName + "<br>" + "Course ID: " + courseId; return createShowPageResult(Const.ViewURIs.STUDENT_FEEDBACK_SUBMISSION_EDIT, data); }</code><technical_language>stated in other pull request, restore null checks</technical_language>

Target:
protected ActionResult execute() throws EntityDoesNotExistException { String courseId = getRequestParamValue(Const.ParamsNames.COURSE_ID); String feedbackSessionName = getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME); String previewStudentEmail = getRequestParamValue(Const.ParamsNames.PREVIEWAS); Assumption.assertNotNull(String.format(Const.StatusMessages.NULL_POST_PARAMETER_MESSAGE, Const.ParamsNames.COURSE_ID), courseId); Assumption.assertNotNull(String.format(Const.StatusMessages.NULL_POST_PARAMETER_MESSAGE, Const.ParamsNames.FEEDBACK_SESSION_NAME), feedbackSessionName); Assumption.assertNotNull(String.format(Const.StatusMessages.NULL_POST_PARAMETER_MESSAGE, Const.ParamsNames.PREVIEWAS), previewStudentEmail); new GateKeeper().verifyAccessible( logic.getInstructorForGoogleId(courseId, account.googleId), logic.getFeedbackSession(feedbackSessionName, courseId), true); StudentAttributes previewStudent = logic.getStudentForEmail(courseId, previewStudentEmail); if (previewStudent == null) { throw new EntityDoesNotExistException("Student Email " + previewStudentEmail + " does not exist in " + courseId + "."); } FeedbackSubmissionEditPageData data = new FeedbackSubmissionEditPageData(account); data.bundle = logic.getFeedbackSessionQuestionsBundleForStudent( feedbackSessionName, courseId, previewStudent.email); if (data.bundle == null) { throw new EntityDoesNotExistException("Feedback session " + feedbackSessionName + " does not exist in " + courseId + "."); } data.isSessionOpenForSubmission = true; data.isPreview = true; data.previewStudent = previewStudent; data.bundle.resetAllResponses(); statusToAdmin = "Preview feedback session as student (" + previewStudent.email + ")<br>" + "Session Name: " + feedbackSessionName + "<br>" + "Course ID: " + courseId; return createShowPageResult(Const.ViewURIs.STUDENT_FEEDBACK_SUBMISSION_EDIT, data); }