Buggy code:
if ( addinfo_str != null ) { List < String > ai_list = Arrays . asList ( addinfo_str . split ( "\\s*;\\s*" ) ) ; if ( ai_list != null ) { if ( ! ( ai_list . get ( 0 ) . isEmpty ( ) ) ) orggen_str = ",<seq2seq4repair_space>" + ( ai_list . get ( 0 ) ) ; if ( ! ( ai_list . get ( 1 ) . isEmpty ( ) ) ) flagsb_str = ",<seq2seq4repair_space>" + ( ai_list . get ( 1 ) ) ; } } String swissmedicno8_key = "" ; for ( int n = 0 ; n < 1000 ; ++ n ) { swissmedicno8_key = getSwissmedicNo8 ( smno5 , n ) ; if ( pack_info . containsKey ( swissmedicno8_key ) ) { ArrayList < String > pi_row = RealExpertInfo . m_package_info . get ( swissmedicno8_key ) ; if ( pi_row != null ) { String barcode_html = "" ; String efp = pi_row . get ( 8 ) ; String pup = pi_row . get ( 7 ) ; String fep = "" ; String fap = "" ; String vat = "" ; String eancode = pi_row . get ( 14 ) ; int visible = 255 ; int has_free_samples = 0 ; if ( ( ( ( m_map_products ) != null ) && ( eancode != null ) ) && ( m_map_products . containsKey ( eancode ) ) ) { Product product = m_map_products . get ( eancode ) ; if ( ( product . efp ) > 0.0F ) efp = String . format ( "CHF<seq2seq4repair_space>%.2f" , product . efp ) ; if ( ( product . pp ) > 0.0F ) pup = String . format ( "CHF<seq2seq4repair_space>%.2f" , product . pp ) ; if ( ( product . fap ) > 0.0F ) fap = String . format ( "CHF<seq2seq4repair_space>%.2f" , product . fap ) ; if ( ( product . fep ) > 0.0F ) fep = String . format ( "CHF<seq2seq4repair_space>%.2f" , product . fep ) ; if ( ( product . vat ) > 0.0F ) vat = String . format ( "%.2f" , product . vat ) ; visible = product . visible ; has_free_samples = product . free_sample ; } if ( pi_row . get ( 10 ) . equals ( "a.H." ) ) { pi_row . set ( 10 , "ev.nn.i.H." ) ; } if ( pi_row . get ( 10 ) . equals ( "p.c." ) ) { pi_row . set ( 10 , "ev.ep.e.c." ) ; } if ( ( ( pi_row . get ( 10 ) . isEmpty ( ) ) || ( pi_row . get ( 10 ) . equals ( "ev.nn.i.H." ) ) ) || ( pi_row . get ( 10 ) . equals ( "ev.ep.e.c." ) ) ) { try { if ( ! ( eancode . isEmpty ( ) ) ) { BarCode bc = new BarCode ( ) ; if ( ( eancode . length ( ) ) == 12 ) { int cs = bc . getChecksum ( eancode ) ; eancode += cs ; } String barcodeImg64 = bc . encode ( eancode ) ; barcode_html = ( "<p<seq2seq4repair_space>class=\"barcode\">" + barcodeImg64 ) + "<//p>" ; barcode_list . add ( barcode_html ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } m_list_of_packages . add ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( pi_row . get ( 1 ) ) + "|" ) + ( pi_row . get ( 3 ) ) ) + "|" ) + ( pi_row . get ( 4 ) ) ) + "|" ) + efp ) + "|" ) + pup ) + "|" ) + fap ) + "|" ) + fep ) + "|" ) + vat ) + "|" ) + ( pi_row . get ( 5 ) ) ) + ",<seq2seq4repair_space>" ) + ( pi_row . get ( 11 ) ) ) + ",<seq2seq4repair_space>" ) + ( pi_row . get ( 12 ) ) ) + "|" ) + eancode ) + "|" ) + ( pi_row . get ( 15 ) ) ) + "|" ) + visible ) + "|" ) + has_free_samples ) + "\n" ) ) ; m_list_of_eancodes . add ( eancode ) ; } String medtitle = capitalizeFully ( pi_row . get ( 1 ) . replaceAll ( "\\s+" , "<seq2seq4repair_space>" ) , 1 ) ; medtitle = medtitle . replaceAll ( "\\[(.*?)\\?\\]<seq2seq4repair_space>" , "" ) ; String withdrawn_str = "" ; if ( ( pi_row . get ( 10 ) . length ( ) ) > 0 ) withdrawn_str = ",<seq2seq4repair_space>" + ( pi_row . get ( 10 ) ) ; String price_efp = ( ! ( efp . isEmpty ( ) ) ) ? "EFP" + ( efp . replace ( "CHF" , "" ) ) : "" ; String price_fap = ( ! ( fap . isEmpty ( ) ) ) ? "EFP" + ( fap . replace ( "CHF" , "" ) ) : "" ; String price_pp = ( ! ( pup . isEmpty ( ) ) ) ? "PP" + ( pup . replace ( "CHF" , "" ) ) : "" ; String price_info = "" ; if ( ( price_efp . length ( ) ) > 0 ) price_info += ",<seq2seq4repair_space>" + price_efp ; else if ( ( price_fap . length ( ) ) > 0 ) price_info += ",<seq2seq4repair_space>" + price_fap ; if ( ( price_pp . length ( ) ) > 0 ) price_info += ",<seq2seq4repair_space>" + price_pp ; if ( ( price_info . length ( ) ) > 0 ) { String append_str = ( ( ( ( ( ( withdrawn_str + "<seq2seq4repair_space>[" ) + ( pi_row . get ( 5 ) ) ) + ( pi_row . get ( 11 ) ) ) + ( pi_row . get ( 12 ) ) ) + flagsb_str ) + orggen_str ) + "]" ; <START_BUG> if ( pi_row . get ( 11 ) . contains ( "SL" ) ) { <END_BUG> append_str = price_info + append_str ; }

Fix:
if ( ( pi_row . get ( 11 ) . contains ( "SL" ) ) || ( pi_row . get ( 11 ) . contains ( "LS" ) ) ) {