From b9f677ff2feef32bb8ed2a0f8a093017e7e43510 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 11 Jan 2023 17:17:22 +0100 Subject: [PATCH] Fixed selecting default encoding --- app/src/main/java/eu/faircode/email/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 025baf1fbd..ea75c00ce2 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -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");