Buggy code:
else { SearchApplicant . firstName = ( "<seq2seq4repair_space>AND<seq2seq4repair_space>firstName<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantGeneral . getFirstName ( ) ) ) + "'" ; } } else { SearchApplicant . firstName = "" ; } if ( ! ( DialogSearchApplicantGeneral . getStreet ( ) . equals ( "" ) ) ) { if ( first == true ) { SearchApplicant . street = ( "where<seq2seq4repair_space>street<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantGeneral . getStreet ( ) ) ) + "'" ; first = false ; } else { SearchApplicant . street = ( "<seq2seq4repair_space>AND<seq2seq4repair_space>street<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantGeneral . getStreet ( ) ) ) + "'" ; } } else { SearchApplicant . street = "" ; } if ( ! ( ( DialogSearchApplicantGeneral . getHouseNr ( ) ) == 0 ) ) { if ( first == true ) { SearchApplicant . houseNr = ( "where<seq2seq4repair_space>houseNR<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantGeneral . getHouseNr ( ) ) ) + "'" ; first = false ; } else { SearchApplicant . houseNr = ( "<seq2seq4repair_space>AND<seq2seq4repair_space>houseNR<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantGeneral . getHouseNr ( ) ) ) + "'" ; } } else { SearchApplicant . houseNr = "" ; } if ( ! ( ( DialogSearchApplicantGeneral . getPostalCode ( ) ) == 0 ) ) { if ( first == true ) { SearchApplicant . postalCode = ( "where<seq2seq4repair_space>postalCode<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantGeneral . getPostalCode ( ) ) ) + "'" ; first = false ; } else { SearchApplicant . postalCode = ( "<seq2seq4repair_space>AND<seq2seq4repair_space>postalCode<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantGeneral . getPostalCode ( ) ) ) + "'" ; } } else { SearchApplicant . postalCode = "" ; } if ( ! ( DialogSearchApplicantGeneral . getCity ( ) . equals ( "" ) ) ) { if ( first == true ) { SearchApplicant . city = ( "where<seq2seq4repair_space>city<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantGeneral . getCity ( ) ) ) + "'" ; first = false ; } else { SearchApplicant . city = ( "<seq2seq4repair_space>AND<seq2seq4repair_space>city<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantGeneral . getCity ( ) ) ) + "'" ; } } else { SearchApplicant . city = "" ; } if ( ! ( DialogSearchApplicantContact . getTelefonHome ( ) . equals ( "" ) ) ) { if ( first == true ) { SearchApplicant . telefonHome = ( "where<seq2seq4repair_space>telefonHome<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantContact . getTelefonHome ( ) ) ) + "'" ; first = false ; } else { SearchApplicant . telefonHome = ( "<seq2seq4repair_space>AND<seq2seq4repair_space>telefonHome<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantContact . getTelefonHome ( ) ) ) + "'" ; } } else { SearchApplicant . telefonHome = "" ; } if ( ! ( DialogSearchApplicantContact . getTelefonMobil ( ) . equals ( "" ) ) ) { if ( first == true ) { SearchApplicant . telefonMobil = ( "where<seq2seq4repair_space>telefonMobil<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantContact . getTelefonMobil ( ) ) ) + "'" ; first = false ; } else { SearchApplicant . telefonMobil = ( "<seq2seq4repair_space>AND<seq2seq4repair_space>telefonMobil<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantContact . getTelefonMobil ( ) ) ) + "'" ; } } else { SearchApplicant . telefonMobil = "" ; } if ( ! ( DialogSearchApplicantContact . getEmail ( ) . equals ( "" ) ) ) { if ( first == true ) { SearchApplicant . email = ( "where<seq2seq4repair_space>email<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantContact . getEmail ( ) ) ) + "'" ; first = false ; } else { SearchApplicant . email = ( "<seq2seq4repair_space>AND<seq2seq4repair_space>email<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantContact . getEmail ( ) ) ) + "'" ; } } else { SearchApplicant . email = "" ; } <START_BUG> if ( ! ( DialogSearchApplicantApplication . getVacancy ( ) . equals ( "" ) ) ) { <END_BUG> if ( first == true ) { SearchApplicant . vacancy = ( "where<seq2seq4repair_space>vacancy<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantApplication . getVacancy ( ) ) ) + "'" ; first = false ; } else { SearchApplicant . vacancy = ( "<seq2seq4repair_space>AND<seq2seq4repair_space>vacancy<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantApplication . getVacancy ( ) ) ) + "'" ; } } else { SearchApplicant . vacancy = "" ; } if ( ! ( DialogSearchApplicantApplication . getEducationalAchievement ( ) . equals ( "" ) ) ) { if ( first == true ) { SearchApplicant . educationalAcievement = ( "where<seq2seq4repair_space>educationalAchievement<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantApplication . getEducationalAchievement ( ) ) ) + "'" ; first = false ; } else { SearchApplicant . educationalAcievement = ( "AND<seq2seq4repair_space>educationalAchievement<seq2seq4repair_space>=<seq2seq4repair_space>'" + ( DialogSearchApplicantApplication . getEducationalAchievement ( ) ) ) + "'" ; } } else { SearchApplicant . educationalAcievement = "" ; } try { dbConnection = Login . getConnection ( ) ; Statement stmt = dbConnection . createStatement ( ) ; ResultSet rs = stmt . executeQuery ( ( ( ( ( ( ( ( ( ( ( ( ( "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>applicant<seq2seq4repair_space>" + ( SearchApplicant . applicantID ) ) + ( SearchApplicant . name ) ) + ( SearchApplicant . firstName ) ) + ( SearchApplicant . street ) ) + ( SearchApplicant . houseNr ) ) + ( SearchApplicant . postalCode ) ) + ( SearchApplicant . city ) ) + ( SearchApplicant . telefonHome ) ) + ( SearchApplicant . telefonMobil ) ) + ( SearchApplicant . email ) ) + ( SearchApplicant . vacancy ) ) + ( SearchApplicant . educationalAcievement ) ) ) ; while ( rs . next ( ) ) { Vector applicant = new Vector ( ) ; applicant . add ( rs . getString ( 1 ) ) ; applicant . add ( rs . getString ( 2 ) ) ; applicant . add ( rs . getString ( 3 ) ) ; applicant . add ( rs . getString ( 4 ) ) ; applicant . add ( rs . getString ( 5 ) ) ; applicant . add ( rs . getString ( 6 ) ) ; applicant . add ( rs . getString ( 7 ) ) ; applicant . add ( rs . getString ( 8 ) ) ; applicant . add ( rs . getString ( 9 ) ) ; applicant . add ( rs . getString ( 10 ) ) ;

Fix:
if ( ! ( DialogSearchApplicantApplication . getVacancy ( ) . equals ( "null" ) ) ) {