Added fail-safe

This commit is contained in:
M66B 2021-12-30 09:07:39 +01:00
parent 668f7951ea
commit 3ae331578f
1 changed files with 19 additions and 16 deletions

View File

@ -5918,7 +5918,8 @@ public class FragmentCompose extends FragmentBase {
args.putBoolean("remind_dsn", true);
// Check size
if (identity != null && identity.max_size != null) {
if (identity != null && identity.max_size != null)
try {
Properties props = MessageHelper.getSessionProperties();
if (identity.unicode)
props.put("mail.mime.allowutf8", "true");
@ -5936,6 +5937,8 @@ public class FragmentCompose extends FragmentBase {
args.putLong("size", size);
args.putLong("max_size", identity.max_size);
}
} catch (Throwable ex) {
Log.e(ex);
}
} else {
int mid;