Fixed selecting default encoding

This commit is contained in:
M66B 2023-01-11 17:17:22 +01:00
parent ab275e06f0
commit b9f677ff2f
1 changed files with 1 additions and 1 deletions

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");