mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03:52:06 +01:00
Allow null username (mainly for SASL EXTERNAL)
Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>
This commit is contained in:
parent
7436a16d09
commit
613da7b9ff
1 changed files with 3 additions and 1 deletions
|
@ -254,7 +254,9 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
||||||
throw new AlreadyLoggedInException();
|
throw new AlreadyLoggedInException();
|
||||||
}
|
}
|
||||||
// Do partial version of nameprep on the username.
|
// Do partial version of nameprep on the username.
|
||||||
username = username.toLowerCase(Locale.US).trim();
|
if (username != null) {
|
||||||
|
username = username.toLowerCase(Locale.US).trim();
|
||||||
|
}
|
||||||
|
|
||||||
if (saslAuthentication.hasNonAnonymousAuthentication()) {
|
if (saslAuthentication.hasNonAnonymousAuthentication()) {
|
||||||
// Authenticate using SASL
|
// Authenticate using SASL
|
||||||
|
|
Loading…
Reference in a new issue