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:
parent
483857ed74
commit
b4ea7f34a4
@ -128,11 +128,11 @@ public class AccountSetupCheckSettings extends Activity implements OnClickListen
|
|||||||
acceptKeyDialog(
|
acceptKeyDialog(
|
||||||
R.string.account_setup_failed_dlg_certificate_message_fmt,
|
R.string.account_setup_failed_dlg_certificate_message_fmt,
|
||||||
cve);
|
cve);
|
||||||
//cve.getMessage() == null ? "" : cve.getMessage());
|
} catch (final Throwable t) {
|
||||||
} catch (final MessagingException me) {
|
|
||||||
showErrorDialog(
|
showErrorDialog(
|
||||||
R.string.account_setup_failed_dlg_server_message_fmt,
|
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