Buggy code:
public class Kurs { private int id ; private String kursname ; private String kursmail ; private int modulplanID ; private int studentenAnzahl ; private String kurssprecherVorname ; private String kurssprecherName ; private String kurssprecherMail ; private String kurssprecherTelefon ; private int studiengangsleiterID ; private String sekretariatName ; public static ArrayList < Kurs > getAll ( ) throws WebServiceException { } public Kurs ( int id ) throws WebServiceException { } public Kurs getDirectAttributes ( ) throws WebServiceException { if ( ( id ) <= 0 ) { throw new WebServiceException ( ExceptionStatus . INVALID_ARGUMENT_ID ) ; } DatabaseConnection db = ConnectionPool . getConnectionPool ( ) . getConnection ( ) ; ArrayList < Object > fieldValues = new ArrayList < Object > ( ) ; fieldValues . add ( id ) ; <START_BUG> ArrayList < TypeHashMap < String , Object > > resultList = db . doSelectingQuery ( "SELECT<seq2seq4repair_space>kursname,<seq2seq4repair_space>kursMail,<seq2seq4repair_space>modulplan,<seq2seq4repair_space>studentenAnzahl,<seq2seq4repair_space>kurssprecherVorname,<seq2seq4repair_space>kurssprecherName,<seq2seq4repair_space>kurssprecherMail,<seq2seq4repair_space>kurssprecherTelefon,<seq2seq4repair_space>studiengangsleiter,<seq2seq4repair_space>sekretariatName<seq2seq4repair_space>FROM<seq2seq4repair_space>dozent<seq2seq4repair_space>WHERE<seq2seq4repair_space>id<seq2seq4repair_space>=<seq2seq4repair_space>?" , fieldValues ) ; <END_BUG> if ( resultList . isEmpty ( ) ) { throw new WebServiceException ( ExceptionStatus . OBJECT_NOT_FOUND ) ; } TypeHashMap < String , Object > result = resultList . get ( 0 ) ; kursname = result . getString ( "kursname" ) ; kursmail = result . getString ( "kursMail" ) ; modulplanID = result . getInt ( "modulplan" ) ; studentenAnzahl = result . getInt ( "studentenAnzahl" ) ; kurssprecherVorname = result . getString ( "kurssprecherVorname" ) ; kurssprecherName = result . getString ( "kurssprecherName" ) ; kurssprecherMail = result . getString ( "kurssprecherMail" ) ; kurssprecherTelefon = result . getString ( "kurssprecherTelefon" ) ; studiengangsleiterID = result . getInt ( "studiengangsleiter" ) ; sekretariatName = result . getString ( "sekretariatName" ) ; return this ; } public ArrayList < Blocklage > getBlocklageList ( ) throws WebServiceException { } public Kurs create ( ) throws WebServiceException { } public Kurs update ( ) throws WebServiceException { } public Blocklage updateBlocklage ( Blocklage blocklage ) throws WebServiceException { } public void delete ( ) throws WebServiceException { } private void checkDirectAttributes ( ) throws WebServiceException { } public int getID ( ) { } public void setID ( int id ) { } }

Fix:
ArrayList < TypeHashMap < String , Object > > resultList = db . doSelectingQuery ( "SELECT<seq2seq4repair_space>kursname,<seq2seq4repair_space>kursMail,<seq2seq4repair_space>modulplan,<seq2seq4repair_space>studentenAnzahl,<seq2seq4repair_space>kurssprecherVorname,<seq2seq4repair_space>kurssprecherName,<seq2seq4repair_space>kurssprecherMail,<seq2seq4repair_space>kurssprecherTelefon,<seq2seq4repair_space>studiengangsleiter,<seq2seq4repair_space>sekretariatName<seq2seq4repair_space>FROM<seq2seq4repair_space>kurs<seq2seq4repair_space>WHERE<seq2seq4repair_space>id<seq2seq4repair_space>=<seq2seq4repair_space>?" , fieldValues ) ;