mirror of https://github.com/M66B/FairEmail.git
Fixed null errors
This commit is contained in:
parent
3a53d69b31
commit
38df2f6d24
|
@ -57,7 +57,6 @@ import java.util.concurrent.ThreadFactory;
|
||||||
|
|
||||||
import javax.mail.Address;
|
import javax.mail.Address;
|
||||||
import javax.mail.AuthenticationFailedException;
|
import javax.mail.AuthenticationFailedException;
|
||||||
import javax.mail.FolderClosedException;
|
|
||||||
import javax.mail.MessagingException;
|
import javax.mail.MessagingException;
|
||||||
import javax.mail.internet.InternetAddress;
|
import javax.mail.internet.InternetAddress;
|
||||||
|
|
||||||
|
@ -142,11 +141,6 @@ public class Helper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static String formatThrowable(Throwable ex) {
|
static String formatThrowable(Throwable ex) {
|
||||||
if (ex instanceof FolderClosedException)
|
|
||||||
return null;
|
|
||||||
if (ex instanceof IllegalStateException)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(ex.getMessage() == null ? ex.getClass().getName() : ex.getMessage());
|
sb.append(ex.getMessage() == null ? ex.getClass().getName() : ex.getMessage());
|
||||||
Throwable cause = ex.getCause();
|
Throwable cause = ex.getCause();
|
||||||
|
|
Loading…
Reference in New Issue