Buggy code:
public class SendFTPButton extends OMToolComponent implements Tool , ActionListener { private static final long serialVersionUID = 6706092075829947101L ; protected JButton sendFTPButton = null ; protected JToolBar jToolBar ; private OpenMapFrame openMapFrame ; private StationLayer stationLayer ; private EavdamMenu eavdamMenu ; public SendFTPButton ( ) { } public void actionPerformed ( ActionEvent e ) { EAVDAMData exportData = XMLHandler . exportData ( ) ; String errors = "" ; String infoText = "This<seq2seq4repair_space>will<seq2seq4repair_space>send<seq2seq4repair_space>your<seq2seq4repair_space>latest<seq2seq4repair_space>data<seq2seq4repair_space>file<seq2seq4repair_space>to<seq2seq4repair_space>all<seq2seq4repair_space>defined<seq2seq4repair_space>ftp<seq2seq4repair_space>directories<seq2seq4repair_space>and<seq2seq4repair_space>download\n" + "new<seq2seq4repair_space>data<seq2seq4repair_space>files<seq2seq4repair_space>of<seq2seq4repair_space>other<seq2seq4repair_space>users<seq2seq4repair_space>from<seq2seq4repair_space>them.<seq2seq4repair_space>Are<seq2seq4repair_space>you<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>do<seq2seq4repair_space>this?" ; if ( ( ( exportData . getActiveStations ( ) ) == null ) || ( exportData . getActiveStations ( ) . isEmpty ( ) ) ) { infoText = "You<seq2seq4repair_space>have<seq2seq4repair_space>no<seq2seq4repair_space>own<seq2seq4repair_space>stations,<seq2seq4repair_space>so<seq2seq4repair_space>this<seq2seq4repair_space>will<seq2seq4repair_space>only<seq2seq4repair_space>download<seq2seq4repair_space>new<seq2seq4repair_space>data<seq2seq4repair_space>files<seq2seq4repair_space>of<seq2seq4repair_space>other\n" + "users<seq2seq4repair_space>from<seq2seq4repair_space>the<seq2seq4repair_space>defined<seq2seq4repair_space>ftp<seq2seq4repair_space>directories.<seq2seq4repair_space>Are<seq2seq4repair_space>you<seq2seq4repair_space>sure<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>do<seq2seq4repair_space>this?" ; } int response = JOptionPane . showConfirmDialog ( openMapFrame , infoText , "Confirm<seq2seq4repair_space>action" , JOptionPane . YES_NO_OPTION ) ; if ( response == ( JOptionPane . YES_OPTION ) ) { Options options = OptionsMenuItem . loadOptions ( ) ; String ownFileName = XMLHandler . getLatestDataFileName ( ) ; if ( ( ownFileName != null ) && ( ( ownFileName . indexOf ( "//" ) ) != ( - 1 ) ) ) { ownFileName = ownFileName . substring ( ( ( ownFileName . lastIndexOf ( "//" ) ) + 1 ) ) ; } List < FTP > ftps = options . getFTPs ( ) ; if ( ( ftps != null ) && ( ! ( ftps . isEmpty ( ) ) ) ) { for ( FTP ftp : ftps ) { try { FTPClient ftpClient = FTPHandler . connect ( ftp ) ; <START_BUG> if ( ( ( exportData . getActiveStations ( ) ) == null ) || ( exportData . getActiveStations ( ) . isEmpty ( ) ) ) { <END_BUG> FTPHandler . deleteDataFromFTP ( ftpClient , ownFileName ) ; } else { FTPHandler . sendDataToFTP ( ftpClient , XMLHandler . getLatestDataFileName ( ) ) ; } FTPHandler . importDataFromFTP ( ftpClient , importDataFolder , ownFileName ) ; FTPHandler . disconnect ( ftpClient ) ; } catch ( IOException ex ) { System . out . println ( ex . getMessage ( ) ) ; ex . printStackTrace ( ) ; errors += ( "-<seq2seq4repair_space>" + ( ex . getMessage ( ) ) ) + "\n" ; } catch ( Exception ex ) { System . out . println ( ex . getMessage ( ) ) ; ex . printStackTrace ( ) ; errors += ( "-<seq2seq4repair_space>" + ( ex . getMessage ( ) ) ) + "\n" ; } } EAVDAMData data = XMLHandler . importData ( ) ; if ( ( eavdamMenu ) != null ) { if ( ( ( eavdamMenu . getStationInformationMenu ( ) ) != null ) && ( ( eavdamMenu . getStationInformationMenu ( ) . getStationInformationMenuItem ( ) ) != null ) ) { eavdamMenu . getStationInformationMenu ( ) . getStationInformationMenuItem ( ) . setData ( data ) ; } } if ( ( stationLayer ) != null ) { stationLayer . updateStations ( ) ; } if ( errors . isEmpty ( ) ) { JOptionPane . showMessageDialog ( openMapFrame , "Data<seq2seq4repair_space>exhanged<seq2seq4repair_space>succesfully." ) ; } else { JOptionPane . showMessageDialog ( openMapFrame , ( "The<seq2seq4repair_space>following<seq2seq4repair_space>ftp<seq2seq4repair_space>sites<seq2seq4repair_space>had<seq2seq4repair_space>problems<seq2seq4repair_space>when<seq2seq4repair_space>exchanging<seq2seq4repair_space>data:\n" + errors ) , "Error" , JOptionPane . ERROR_MESSAGE ) ; } } else { JOptionPane . showMessageDialog ( openMapFrame , "No<seq2seq4repair_space>FTP<seq2seq4repair_space>sites<seq2seq4repair_space>defined." , "Error" , JOptionPane . ERROR_MESSAGE ) ; } } else if ( response == ( JOptionPane . NO_OPTION ) ) { } } @ Override 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 ) ) {