From 9099bb036e8d122e495b2e545a5370ed52df4873 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 4 Feb 2021 20:40:15 +0100 Subject: [PATCH] Illegal argument exception on invalid multipart --- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 333a235d40..c1c48a30a0 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -2438,7 +2438,7 @@ public class MessageHelper { String sample = text.substring(0, Math.min(200, text.length())); throw new ParseException(content.getClass().getName() + ": " + sample); } else - throw new ParseException(content.getClass().getName()); + throw new IllegalArgumentException(content.getClass().getName()); boolean other = false; List plain = new ArrayList<>();