From 38df2f6d240967b56979972cca0757909117422e Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 7 Oct 2018 15:43:55 +0000 Subject: [PATCH] Fixed null errors --- app/src/main/java/eu/faircode/email/Helper.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index 413dd306c4..f7f61e6b04 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -57,7 +57,6 @@ import java.util.concurrent.ThreadFactory; import javax.mail.Address; import javax.mail.AuthenticationFailedException; -import javax.mail.FolderClosedException; import javax.mail.MessagingException; import javax.mail.internet.InternetAddress; @@ -142,11 +141,6 @@ public class Helper { } static String formatThrowable(Throwable ex) { - if (ex instanceof FolderClosedException) - return null; - if (ex instanceof IllegalStateException) - return null; - StringBuilder sb = new StringBuilder(); sb.append(ex.getMessage() == null ? ex.getClass().getName() : ex.getMessage()); Throwable cause = ex.getCause();