Buggy code:
public class InstructorCourseEditPageData extends PageData { private int instructorToShowIndex ; private ElementTag deleteCourseButton ; private CourseAttributes course ; private List < CourseEditInstructorPanel > instructorPanelList ; private CourseEditInstructorPanel addInstructorPanel ; private InstructorAttributes currentInstructor ; private ElementTag addInstructorButton ; public InstructorCourseEditPageData ( AccountAttributes account , CourseAttributes course , List < InstructorAttributes > instructorList , InstructorAttributes currentInstructor , int instructorToShowIndex , List < String > sectionNames , List < String > feedbackNames ) { } private List < CourseEditInstructorPanel > createInstructorPanelList ( List < InstructorAttributes > instructorList , List < String > sectionNames , List < String > feedbackNames ) { } private void createButtons ( ) { } private CourseEditInstructorPanel createInstructorPanel ( int instructorIndex , InstructorAttributes instructor , List < String > sectionNames , List < String > feedbackNames ) { <START_BUG> CourseEditInstructorPanel instructorPanel = new CourseEditInstructorPanel ( instructorToShowIndex , instructorIndex , currentInstructor , sectionNames , feedbackNames ) ; <END_BUG> if ( instructor != null ) { String buttonContent = "<span<seq2seq4repair_space>class=\"glyphicon<seq2seq4repair_space>glyphicon-envelope\"><//span><seq2seq4repair_space>Resend<seq2seq4repair_space>Invite" ; boolean isDisabled = ! ( currentInstructor . isAllowedForPrivilege ( INSTRUCTOR_PERMISSION_MODIFY_INSTRUCTOR ) ) ; String href ; String onClick ; if ( ( instructor . googleId ) == null ) { href = getInstructorCourseInstructorRemindLink ( instructor . courseId , instructor . email ) ; onClick = ( ( ( "return<seq2seq4repair_space>toggleSendRegistrationKey('" + ( instructor . courseId ) ) + "','" ) + ( instructor . email ) ) + ");" ; instructorPanel . setResendInviteButton ( createButton ( buttonContent , "btn<seq2seq4repair_space>btn-primary<seq2seq4repair_space>btn-xs" , ( "instrRemindLink" + ( instructorPanel . getIndex ( ) ) ) , href , COURSE_INSTRUCTOR_REMIND , onClick , isDisabled ) ) ; } buttonContent = "<span<seq2seq4repair_space>class=\"glyphicon<seq2seq4repair_space>glyphicon-pencil\"><//span><seq2seq4repair_space>Edit" ; instructorPanel . setEditButton ( createButton ( buttonContent , "btn<seq2seq4repair_space>btn-primary<seq2seq4repair_space>btn-xs" , ( "instrEditLink" + ( instructorPanel . getIndex ( ) ) ) , "javascript:;" , COURSE_INSTRUCTOR_EDIT , null , isDisabled ) ) ; buttonContent = "<span<seq2seq4repair_space>class=\"glyphicon<seq2seq4repair_space>glyphicon-trash\"><//span><seq2seq4repair_space>Delete" ; href = getInstructorCourseInstructorDeleteLink ( instructor . courseId , instructor . email ) ; onClick = ( ( ( ( ( "return<seq2seq4repair_space>toggleDeleteInstructorConfirmation('" + ( instructor . courseId ) ) + "','" ) + ( instructor . email ) ) + "',<seq2seq4repair_space>" ) + ( instructor . email . equals ( this . account . email ) ) ) + ");" ; instructorPanel . setDeleteButton ( createButton ( buttonContent , "btn<seq2seq4repair_space>btn-primary<seq2seq4repair_space>btn-xs" , ( "instrDeleteLink" + ( instructorPanel . getIndex ( ) ) ) , href , COURSE_INSTRUCTOR_DELETE , onClick , isDisabled ) ) ; } return instructorPanel ; } public ElementTag getDeleteCourseButton ( ) { } public ElementTag getAddInstructorButton ( ) { } public CourseEditInstructorPanel getAddInstructorPanel ( ) { } public CourseAttributes getCourse ( ) { } public List < CourseEditInstructorPanel > getInstructorPanelList ( ) { } public int getInstructorToShowIndex ( ) { } private String getInstructorCourseInstructorDeleteLink ( String courseId , String instructorEmail ) { } private String getInstructorCourseInstructorRemindLink ( String courseId , String instructorEmail ) { } private ElementTag createButton ( String content , String buttonClass , String id , String href , String title , String onClick , boolean isDisabled ) { } }

Fix:
CourseEditInstructorPanel instructorPanel = new CourseEditInstructorPanel ( instructorToShowIndex , instructorIndex , instructor , sectionNames , feedbackNames ) ;