mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
catch Throwable, rather than MessagingException, to prevent a crash on stray exceptions.
This commit is contained in:
parent
483857ed74
commit
b4ea7f34a4
@ -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()));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user