Buggy code:
public class BatchForm { private JPanel BatchForm ; private JButton browseButton ; private JTextField pathField ; private JButton generateButton ; private JComboBox chooseAState ; private JTextArea csvExample ; public BatchForm ( Boolean simple ) { } public void generateData ( ) { File csv = new File ( pathField . getText ( ) ) ; if ( ! ( csv . exists ( ) ) ) { JOptionPane . showMessageDialog ( null , "Error:<seq2seq4repair_space>the<seq2seq4repair_space>selected<seq2seq4repair_space>file<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist<seq2seq4repair_space>or<seq2seq4repair_space>no<seq2seq4repair_space>file<seq2seq4repair_space>selected." ) ; return ; } Boolean created = false ; ArrayList < String > lines = new ArrayList < String > ( ) ; try { lines . addAll ( Files . readAllLines ( Paths . get ( csv . getAbsolutePath ( ) ) , Charset . defaultCharset ( ) ) . stream ( ) . collect ( Collectors . toList ( ) ) ) ; } catch ( IOException e ) { JOptionPane . showMessageDialog ( null , "Error:<seq2seq4repair_space>couldn't<seq2seq4repair_space>read<seq2seq4repair_space>CSV<seq2seq4repair_space>file." ) ; return ; } String delim = "," ; String regex = "(?<!\\\\)" + ( Pattern . quote ( delim ) ) ; ArrayList < String > data = new ArrayList < String > ( ) ; String [ ] header = lines . get ( 0 ) . split ( "," ) ; String [ ] fields = lines . get ( 1 ) . split ( regex ) ; if ( ( chooseAState . getSelectedItem ( ) ) == null ) { JOptionPane . showMessageDialog ( null , "Error:<seq2seq4repair_space>You<seq2seq4repair_space>must<seq2seq4repair_space>choose<seq2seq4repair_space>a<seq2seq4repair_space>state." ) ; } if ( ( ( chooseAState . getSelectedItem ( ) ) != null ) && ( ! ( header [ 0 ] . equalsIgnoreCase ( ( ( String ) ( chooseAState . getSelectedItem ( ) ) ) ) ) ) ) { JOptionPane . showMessageDialog ( null , "Warning:<seq2seq4repair_space>CSV<seq2seq4repair_space>state<seq2seq4repair_space>code<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>match<seq2seq4repair_space>script<seq2seq4repair_space>state<seq2seq4repair_space>code." ) ; } for ( int i = 1 ; i < ( lines . size ( ) ) ; i ++ ) { String [ ] l = lines . get ( i ) . split ( regex , ( - 1 ) ) ; for ( int j = 0 ; j < ( l . length ) ; j ++ ) { l [ j ] = l [ j ] . replaceAll ( "\\\\" , "" ) ; data . add ( ( ( ( header [ j ] ) + "::" ) + ( l [ j ] ) ) ) ; } try { StateGenerator sg = StateGenerator . instantiateStateScript ( TransGen . getInstance ( ) . getStateGenerators ( ) . get ( chooseAState . getSelectedItem ( ) ) , data . toArray ( new String [ data . size ( ) ] ) ) ; <START_BUG> sg . generate ( Utils . tryParseInt ( fields [ 2 ] , 718 ) , Utils . tryParseInt ( fields [ 3 ] , 200 ) , Utils . tryParseInt ( fields [ 4 ] , 500 ) , Utils . tryParseInt ( fields [ 5 ] , 200 ) , fields [ 1 ] ) ; <END_BUG> created = true ; } catch ( Exception E ) { JOptionPane . showMessageDialog ( null , ( "Error:<seq2seq4repair_space>Incorrect<seq2seq4repair_space>CSV<seq2seq4repair_space>format.<seq2seq4repair_space>\n" + ( E . toString ( ) ) ) ) ; } } if ( created ) JOptionPane . showMessageDialog ( null , ( "Success:<seq2seq4repair_space>Barcodes<seq2seq4repair_space>generated<seq2seq4repair_space>in<seq2seq4repair_space>program<seq2seq4repair_space>root<seq2seq4repair_space>-><seq2seq4repair_space>" + ( new File ( "" ) . getAbsolutePath ( ) ) ) ) ; } public void browseForCSV ( ) { } public void populateCSVExample ( JComboBox jcb , boolean simple ) { } public void main ( Boolean simple ) { } }

Fix:
sg . generate ( Utils . tryParseInt ( l [ 2 ] , 718 ) , Utils . tryParseInt ( l [ 3 ] , 200 ) , Utils . tryParseInt ( l [ 4 ] , 500 ) , Utils . tryParseInt ( l [ 5 ] , 200 ) , l [ 1 ] ) ;