1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

catch Throwable, rather than MessagingException, to prevent a crash on stray exceptions.

This commit is contained in:
Bradley Young 2009-01-23 23:17:21 +00:00
parent 483857ed74
commit b4ea7f34a4

View File

@ -128,11 +128,11 @@ public class AccountSetupCheckSettings extends Activity implements OnClickListen
acceptKeyDialog(
R.string.account_setup_failed_dlg_certificate_message_fmt,
cve);
//cve.getMessage() == null ? "" : cve.getMessage());
} catch (final MessagingException me) {
} catch (final Throwable t) {
showErrorDialog(
R.string.account_setup_failed_dlg_server_message_fmt,
me.getMessage() == null ? "" : me.getMessage());
(t.getMessage() == null ? "" : t.getMessage()));
}
}