Buggy code:
BorderLayout borderLayout1 = new BorderLayout ( ) ; Border border13 = BorderFactory . createEmptyBorder ( ) ; public NewSalePanel ( ) { } public NewSalePanel ( JFrame parent ) { } private void jbInit ( ) throws Exception { } void jButton1_actionPerformed ( ActionEvent e ) { } public void tableChanged ( TableModelEvent e ) { } public static int randInt ( int min , int max ) { } private static String meAddress = "indomaret@superpay://order//" + ( NewSalePanel . randInt ( 100 , 9000 ) ) ; class CompleteSaleResult { private int errorCode ; private String desc ; public CompleteSaleResult ( int errorCode , String desc ) { } public int getErrorCode ( ) { } public String getDesc ( ) { } public boolean isSuccess ( ) { } } NewSalePanel . CompleteSaleResult completeSale ( Payment payment ) { try { TableModel model = jTable2 . getModel ( ) ; int rowCount = model . getRowCount ( ) ; OrderProduct [ ] products = new OrderProduct [ rowCount ] ; for ( int i = 0 ; i < rowCount ; i ++ ) { products [ i ] = new OrderProduct ( ( ( String ) ( model . getValueAt ( i , 5 ) ) ) , ( ( String ) ( model . getValueAt ( i , 0 ) ) ) , ( ( String ) ( model . getValueAt ( i , 1 ) ) ) , ( ( Double ) ( model . getValueAt ( i , 2 ) ) ) . doubleValue ( ) , ( ( Double ) ( model . getValueAt ( i , 3 ) ) ) . doubleValue ( ) , ( ( Integer ) ( model . getValueAt ( i , 4 ) ) ) . intValue ( ) ) ; } NumberFormat nf = NumberFormat . getInstance ( ) ; User user = ( ( MainFrame ) ( parent ) ) . getUser ( ) ; Order order = Order . createOrder ( products , totalPanel . getTotal ( ) , totalPanel . getSalesTax ( ) , payment , user . getId ( ) , customer ) ; if ( order != null ) { newSale ( ) ; if ( payment . getPaymentType ( ) . equals ( "Cash" ) ) { CDrawer . open ( ) ; } Printer . print ( order ) ; if ( payment . getPaymentType ( ) . equals ( "Credit//Debit" ) ) { Printer . print ( order , "customer" ) ; Printer . print ( order , "store" ) ; } if ( ( Synchronizer . getMode ( ) ) == ( Synchronizer . REAL_SYNC ) ) { order . sync ( ) ; } if ( payment . getPaymentType ( ) . equals ( "Cash" ) ) { while ( ! ( CDrawer . close ( ) ) ) { try { JOptionPane . showMessageDialog ( parent , I18N . getMessageString ( "Please<seq2seq4repair_space>close<seq2seq4repair_space>cash<seq2seq4repair_space>drawer." ) , I18N . getLabelString ( "Error" ) , JOptionPane . ERROR_MESSAGE ) ; Thread . sleep ( 10 ) ; } catch ( Exception exp ) { } } } if ( payment . getPaymentType ( ) . equals ( "Mobile<seq2seq4repair_space>NFC" ) ) { MobilePayment mobilePayment = ( ( MobilePayment ) ( payment ) ) ; String amountStr = String . format ( "%.02f" , mobilePayment . getPaid ( ) ) ; String content = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "{\"src\":\"" + ( mobilePayment . getFromAddress ( ) ) ) + "\"," ) + "\"dst\":\"" ) + ( NewSalePanel . meAddress ) ) + "\"," ) + "\"amount\":" ) + amountStr ) + "," ) + "\"ts\":" ) + ( mobilePayment . getTimestamp ( ) ) ) + "," ) + "\"key\":\"" ) + ( mobilePayment . getSignature ( ) ) ) + "\"," ) + "\"desc\":\"from<seq2seq4repair_space>" ) + ( mobilePayment . getFromAddress ( ) ) ) + "<seq2seq4repair_space>via<seq2seq4repair_space>Mobile<seq2seq4repair_space>NFC\"}" ; System . out . println ( "data<seq2seq4repair_space>to<seq2seq4repair_space>send<seq2seq4repair_space>to<seq2seq4repair_space>server:" ) ; System . out . println ( content ) ; String response = HTTP . post ( "http:////www.mega-pay.net//api//req_for_transfer" , content , "json" , null , null ) . trim ( ) ; System . out . println ( "response<seq2seq4repair_space>from<seq2seq4repair_space>PS<seq2seq4repair_space>server:<seq2seq4repair_space>" ) ; System . out . println ( response ) ; if ( ( response . equalsIgnoreCase ( "{\"status\":<seq2seq4repair_space>\"PAID\",<seq2seq4repair_space>\"error\":<seq2seq4repair_space>0}" ) ) | ( response . equalsIgnoreCase ( "{\"status\":\"PAID\",\"error\":0}" ) ) ) { return new NewSalePanel . CompleteSaleResult ( 0 , "" ) ; } else { <START_BUG> Pattern re = Pattern . compile ( "info\":<seq2seq4repair_space>?\"(.*?)" ) ; <END_BUG> Matcher matcher = re . matcher ( response ) ; if ( matcher . find ( ) ) { return new NewSalePanel . CompleteSaleResult ( 502 , matcher . group ( 1 ) ) ; } } } } else { JOptionPane . showMessageDialog ( parent , I18N . getMessageString ( "Order<seq2seq4repair_space>processing<seq2seq4repair_space>error." ) , I18N . getLabelString ( "Error" ) , JOptionPane . ERROR_MESSAGE ) ; } } catch ( Exception ex ) { JOptionPane . showMessageDialog ( parent , ex . getMessage ( ) , I18N . getLabelString ( "Error" ) , JOptionPane . ERROR_MESSAGE ) ; } return new NewSalePanel . CompleteSaleResult ( 500 , "Internal<seq2seq4repair_space>error" ) ; } void newSale ( ) { } void jButton2_actionPerformed ( ActionEvent e ) { } void jTextField1_keyTyped ( KeyEvent e ) { } void addProduct ( String barcode ) { } void jButton4_actionPerformed ( ActionEvent e ) { } void jButton9_actionPerformed ( ActionEvent e ) { } public void jButton8_actionPerformed ( ActionEvent e ) { } public void jButtonMobilePaymentPerformed ( ActionEvent e ) { } public void jButton7_actionPerformed ( ActionEvent e ) { } public void jButton14_actionPerformed ( ActionEvent e ) { } public void jButton15_actionPerformed ( ActionEvent e ) { } public void jButton16_actionPerformed ( ActionEvent e ) { } public void jButton17_actionPerformed ( ActionEvent e ) { }

Fix:
Pattern re = Pattern . compile ( "\"info\":<seq2seq4repair_space>?\"(.*?)\"" ) ;