Allow to send empty responses.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2815 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2005-09-13 19:43:22 +00:00 committed by gato
parent 6dbc7c285e
commit fbe77866c5
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@ public abstract class SASLMechanism {
StringBuffer stanza = new StringBuffer();
stanza.append("<response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
String authenticationText = getChallengeResponse(StringUtils.decodeBase64(challenge));
stanza.append(StringUtils.encodeBase64(authenticationText));
if (authenticationText != null) {
stanza.append(StringUtils.encodeBase64(authenticationText));
}
stanza.append("</response>");
// Send the authentication to the server