1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 18:59:41 +02:00

SMACK-264 Fix NPE in SASLMechanism

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11256 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Günther Niess 2009-09-09 11:10:34 +00:00 committed by niess
parent 197aa187d9
commit 8dcc226bb5
2 changed files with 76 additions and 24 deletions

View file

@ -23,6 +23,7 @@ package org.jivesoftware.smack;
import org.jivesoftware.smack.filter.PacketIDFilter;
import org.jivesoftware.smack.packet.Bind;
import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.packet.Packet;
import org.jivesoftware.smack.packet.Session;
import org.jivesoftware.smack.sasl.*;
@ -528,9 +529,8 @@ public class SASLAuthentication implements UserAuthentication {
}
}
public void send(String stanza) throws IOException {
connection.writer.write(stanza);
connection.writer.flush();
public void send(Packet stanza) {
connection.sendPacket(stanza);
}
/**