Buggy code:
public class SendEmailButton extends OMToolComponent implements Tool , ActionListener { private static final long serialVersionUID = 6706092075829947101L ; private JButton sendEmailButton = null ; private JToolBar jToolBar ; private OpenMapFrame openMapFrame ; public SendEmailButton ( ) { } public void actionPerformed ( ActionEvent e ) { EAVDAMData exportData = XMLHandler . exportData ( ) ; <START_BUG> if ( ( ( exportData . getActiveStations ( ) ) == null ) || ( exportData . getActiveStations ( ) . isEmpty ( ) ) ) { <END_BUG> JOptionPane . showMessageDialog ( openMapFrame , "You<seq2seq4repair_space>have<seq2seq4repair_space>no<seq2seq4repair_space>own<seq2seq4repair_space>stations" , "Error" , JOptionPane . ERROR_MESSAGE ) ; } else { int response = JOptionPane . showConfirmDialog ( openMapFrame , "This<seq2seq4repair_space>will<seq2seq4repair_space>e-mail<seq2seq4repair_space>the<seq2seq4repair_space>latest<seq2seq4repair_space>data<seq2seq4repair_space>file<seq2seq4repair_space>to<seq2seq4repair_space>all<seq2seq4repair_space>defined<seq2seq4repair_space>recipients.<seq2seq4repair_space>Are<seq2seq4repair_space>you<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>do<seq2seq4repair_space>this?" , "Confirm<seq2seq4repair_space>action" , JOptionPane . YES_NO_OPTION ) ; if ( response == ( JOptionPane . YES_OPTION ) ) { Options options = OptionsMenuItem . loadOptions ( ) ; try { if ( ( ( options . getEmailTo ( ) ) == null ) || ( options . getEmailTo ( ) . isEmpty ( ) ) ) { JOptionPane . showMessageDialog ( openMapFrame , "No<seq2seq4repair_space>e-mail<seq2seq4repair_space>recipients<seq2seq4repair_space>defined!" ) ; } else { EmailSender . sendDataToEmail ( options . getEmailTo ( ) , options . getEmailFrom ( ) , options . getEmailSubject ( ) , options . getEmailHost ( ) , options . isEmailAuth ( ) , options . getEmailUsername ( ) , options . getEmailPassword ( ) ) ; JOptionPane . showMessageDialog ( openMapFrame , "E-mails<seq2seq4repair_space>were<seq2seq4repair_space>sent<seq2seq4repair_space>succesfully." ) ; } } catch ( IOException ex ) { ex . printStackTrace ( ) ; JOptionPane . showMessageDialog ( openMapFrame , ( "The<seq2seq4repair_space>following<seq2seq4repair_space>error<seq2seq4repair_space>occurred<seq2seq4repair_space>when<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>send<seq2seq4repair_space>the<seq2seq4repair_space>e-mails:<seq2seq4repair_space>" + ( ex . getMessage ( ) ) ) , "Error" , JOptionPane . ERROR_MESSAGE ) ; } catch ( MessagingException ex ) { ex . printStackTrace ( ) ; JOptionPane . showMessageDialog ( openMapFrame , ( "The<seq2seq4repair_space>following<seq2seq4repair_space>error<seq2seq4repair_space>occurred<seq2seq4repair_space>when<seq2seq4repair_space>trying<seq2seq4repair_space>to<seq2seq4repair_space>send<seq2seq4repair_space>the<seq2seq4repair_space>e-mails:<seq2seq4repair_space>" + ( ex . getMessage ( ) ) ) , "Error" , JOptionPane . ERROR_MESSAGE ) ; } } else if ( response == ( JOptionPane . NO_OPTION ) ) { } } } public void findAndInit ( Object obj ) { } public void findAndUndo ( Object obj ) { } No newline ; at end ; of file ; }

Fix:
if ( ( ( exportData . getStations ( ) ) == null ) || ( ( exportData . getStations ( ) . length ) == 0 ) ) {