Buggy code:
public class TutorDB { private static final String db_path = "tutordb.db" ; private static final String init_db_path = "//CSTutor//Model//Database//tutordb.sql" ; private static Connection conn = TutorDB . connect ( ) ; private static Connection connect ( ) { } private static void init_db ( Connection con ) throws Exception { } public static void commit ( ) { } public static void setUser ( String username , String hash , String firstname , String lastname , String accessLevel ) { } public static User getUser ( String username ) { try { PreparedStatement s = TutorDB . conn . prepareStatement ( "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>Users<seq2seq4repair_space>WHERE<seq2seq4repair_space>username=?" ) ; s . setString ( 1 , username ) ; ResultSet r = s . executeQuery ( ) ; <START_BUG> CSTutor . Model . User user = new CSTutor . Model . User ( r . getString ( "firstname" ) , r . getString ( "lastname" ) , r . getString ( "username" ) , r . getString ( "hash" ) , ( ( r . getString ( "accessLevel" ) ) == "Professor" ) , false ) ; <END_BUG> s . close ( ) ; return user ; } catch ( Exception e ) { return null ; } } public static List < String > getUsernamesByAccessLevel ( CSTutor . Model . Manager . Class . ClassAccessLevel accessLevel ) { } public static void setTutorialData ( CSTutor . Model . Tutorial . TutorialData tutorial ) { } public static TutorialData getTutorialData ( int id ) { } public static List < CSTutor . Model . Tutorial . TutorialData > getAllTutorialData ( ) { } public static List < CSTutor . Model . Progress . QuizData > getAllQuizData ( ) { } public static List < CSTutor . Model . Manager . Page > getPages ( CSTutor . Model . Manager . Tutorial tutorial ) { } public static void savePages ( List < CSTutor . Model . Manager . Page > pages ) { } public static List < CSTutor . Model . Manager . Tutorial > getTutorials ( CSTutor . Model . Manager . Unit unit ) { } public static void saveTutorials ( List < CSTutor . Model . Manager . Tutorial > tutorials ) { } public static List < CSTutor . Model . Manager . Unit > getUnits ( CSTutor . Model . Manager . Section section ) { } public static void saveUnits ( List < CSTutor . Model . Manager . Unit > units ) { } public static List < CSTutor . Model . Manager . Section > getSections ( CSTutor . Model . Manager . Class clas ) { } public static void saveSections ( List < CSTutor . Model . Manager . Section > sections ) { } private static ClassAccessLevel getAccessEnum ( String access ) { } private static String getAccessString ( CSTutor . Model . Manager . Class . ClassAccessLevel access ) { } private static int printClassHierarchy ( List < CSTutor . Model . Manager . Class > classes ) { } public static List < CSTutor . Model . Manager . Class > getClasses ( ) { } public static List < String > getClassNames ( ) { } private static void deleteClassHierarchy ( ) throws Exception { } public static void saveClasses ( List < CSTutor . Model . Manager . Class > classes ) { } No newline ; at end ; of file ; }

Fix:
CSTutor . Model . User user = new CSTutor . Model . User ( r . getString ( "firstname" ) , r . getString ( "lastname" ) , r . getString ( "username" ) , r . getString ( "hash" ) , r . getString ( "accessLevel" ) . equals ( "Professor" ) , false ) ;