Username cannot be null

This commit is contained in:
M66B 2021-03-11 11:32:25 +01:00
parent 30ecd4fcd1
commit 848b0a2d2a
1 changed files with 1 additions and 3 deletions

View File

@ -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() {