Added fail-safe

pull/194/merge
M66B 4 years ago
parent 668f7951ea
commit 3ae331578f

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

Loading…
Cancel
Save