From 848b0a2d2aa7f3525f77fac3ceadef2d04c77ea7 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 11 Mar 2021 11:32:25 +0100 Subject: [PATCH] Username cannot be null --- app/src/main/java/eu/faircode/email/EmailService.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EmailService.java b/app/src/main/java/eu/faircode/email/EmailService.java index f454d004fd..14d5c7b224 100644 --- a/app/src/main/java/eu/faircode/email/EmailService.java +++ b/app/src/main/java/eu/faircode/email/EmailService.java @@ -560,12 +560,10 @@ public class EmailService implements AutoCloseable { private void _connect( InetAddress address, int port, boolean require_id, - String _user, Authenticator authenticator, + String user, Authenticator authenticator, SSLSocketFactoryService factory) throws MessagingException { isession = Session.getInstance(properties, authenticator); - String user = (TextUtils.isEmpty(_user) ? null : _user); - isession.setDebug(debug || log); if (debug || log) isession.setDebugOut(new PrintStream(new OutputStream() {