1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-19 05:38:31 +00:00

Fixed selecting default encoding

This commit is contained in:
M66B 2023-01-11 17:17:22 +01:00
parent ab275e06f0
commit b9f677ff2f

View file

@ -2130,7 +2130,7 @@ class Core {
private static void onBody(Context context, JSONArray jargs, EntityFolder folder, EntityMessage message, IMAPFolder ifolder) throws MessagingException, IOException {
boolean plain_text = jargs.optBoolean(0);
String charset = jargs.optString(1, null);
String charset = (jargs.isNull(1) ? null : jargs.optString(1, null));
if (message.uid == null)
throw new IllegalArgumentException("uid missing");