for (int x = 0; x < ia.length; x++) { error += "Invalid Address: " + ia[x].toString() + "\n";
if (ia != null) { for (int x = 0; x < ia.length; x++) { error += "Invalid Address: " + ia[x].toString() + "\n"; }
   private void showFailedException(SendFailedException sfe) {      String error = sfe.getMessage() + "\n";      Address[] ia = sfe.getInvalidAddresses();      for (int x = 0; x < ia.length; x++) {         error += "Invalid Address: " + ia[x].toString() + "\n";      }      JTextArea ea = new JTextArea(error,6,50);      JScrollPane errorScrollPane = new JScrollPane(ea);      errorScrollPane.setHorizontalScrollBarPolicy(      JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);      errorScrollPane.setVerticalScrollBarPolicy(      JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);      JOptionPane.showMessageDialog(null,                                       errorScrollPane,                                       LangTool.getString("em.titleConfirmation"),                                       JOptionPane.ERROR_MESSAGE);   }