Buggy code:
public class UserManager { private static String createUserTable = "CREATE<seq2seq4repair_space>TABLE<seq2seq4repair_space>IF<seq2seq4repair_space>NOT<seq2seq4repair_space>EXISTS<seq2seq4repair_space>Users" + ( ( "(<seq2seq4repair_space>user_id<seq2seq4repair_space>integer,<seq2seq4repair_space>username<seq2seq4repair_space>text<seq2seq4repair_space>unique,<seq2seq4repair_space>password<seq2seq4repair_space>text,<seq2seq4repair_space>about_me<seq2seq4repair_space>text,<seq2seq4repair_space>" + "account_status<seq2seq4repair_space>text,<seq2seq4repair_space>role<seq2seq4repair_space>text,<seq2seq4repair_space>num_reports<seq2seq4repair_space>integer," ) + "primary<seq2seq4repair_space>key<seq2seq4repair_space>(user_id))" ) ; private static String updateAccountStatus = "UPDATE<seq2seq4repair_space>Users<seq2seq4repair_space>SET<seq2seq4repair_space>account_status<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private static String deleteUser = "DELETE<seq2seq4repair_space>FROM<seq2seq4repair_space>Users<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private static String insertIntoUsers = "INSERT<seq2seq4repair_space>INTO<seq2seq4repair_space>Users<seq2seq4repair_space>VALUES(NULL,?,?,?,?,?,?)" ; private static String getUserRole = "SELECT<seq2seq4repair_space>role<seq2seq4repair_space>FROM<seq2seq4repair_space>Users<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private static String updateUserRole = "UPDATE<seq2seq4repair_space>Users<seq2seq4repair_space>SET<seq2seq4repair_space>role<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private static String getUsers = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>Users" ; private static String getUser = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>Users<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private static String loginAttempt = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>Users<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>AND<seq2seq4repair_space>password<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private static String checkIfUserExists = "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>Users<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private static String updateUserInfo = "UPDATE<seq2seq4repair_space>Users<seq2seq4repair_space>SET<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?,<seq2seq4repair_space>about_me<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?" ; private static String updateUserPassword = "UPDATE<seq2seq4repair_space>Users<seq2seq4repair_space>SET<seq2seq4repair_space>password<seq2seq4repair_space>=<seq2seq4repair_space>?<seq2seq4repair_space>WHERE<seq2seq4repair_space>username<seq2seq4repair_space>=<seq2seq4repair_space>?" ; public UserManager ( ) throws SQLException { } public ArrayList < User > getUsers ( ) { } public User getUser ( String username ) { } public BooleanDto toggleUserSuspension ( String username ) { } public BooleanDto toggleUserRole ( String username ) { } private boolean setUserRole ( String username , String role ) { } public User checkIfUserExists ( String username ) { } public User loginUser ( String username , String password ) { User result = null ; try ( Connection conn = DriverManager . getConnection ( dbURL ) ; PreparedStatement stmt = conn . prepareStatement ( UserManager . loginAttempt ) ) { stmt . setQueryTimeout ( timeout ) ; stmt . setString ( 1 , username ) ; stmt . setString ( 2 , password ) ; ResultSet rs = stmt . executeQuery ( ) ; if ( rs . next ( ) ) { <START_BUG> result = new User ( rs . getString ( "username" ) , rs . getString ( "password" ) , rs . getString ( "role" ) , rs . getString ( "about_me" ) ) ; <END_BUG> System . out . println ( "Login<seq2seq4repair_space>successful" ) ; } else { System . out . println ( "Login<seq2seq4repair_space>failed:<seq2seq4repair_space>incorrect<seq2seq4repair_space>login<seq2seq4repair_space>details" ) ; } } catch ( SQLException e ) { System . out . println ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>log<seq2seq4repair_space>in<seq2seq4repair_space>user" ) ; e . printStackTrace ( ) ; } return result ; } public void createUser ( String username , String password ) { } public boolean updateUserInfo ( String username , String description , String curUser ) { } public boolean updateUserPassword ( String password , String curUser ) { } public BooleanDto deleteUser ( String username ) { } }

Fix:
result = new User ( rs . getString ( "username" ) , rs . getString ( "password" ) , rs . getString ( "role" ) , rs . getString ( "about_me" ) , rs . getInt ( "num_reports" ) , rs . getString ( "account_status" ) ) ;