summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGurmeen Bindra <gurmeen.bindra@isode.com>2015-08-26 10:23:29 (GMT)
committerGurmeen Bindra <gurmeen.bindra@isode.com>2015-08-26 10:26:38 (GMT)
commit57c4ee4ee04e42662fe829244dbdeb747cb22162 (patch)
tree74d1240bd377803477b6f79b3d0754419f0ac91e
parent277e11b13ea468697804aeb76a1431446c7d3944 (diff)
downloadstroke-57c4ee4ee04e42662fe829244dbdeb747cb22162.zip
stroke-57c4ee4ee04e42662fe829244dbdeb747cb22162.tar.bz2
Add the missing initialisation for authenticator for SASL External
Missing initialisation for client authenticator for SASL external was causing null pointer exceptions. This patch corrects it by initialising the authenticator as is done in swiften. Test-information: tested using an XMPP admin client that does SASL External Change-Id: I321b425c1c28e0424effd9cb974980c392e48b68
-rw-r--r--src/com/isode/stroke/client/ClientSession.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/isode/stroke/client/ClientSession.java b/src/com/isode/stroke/client/ClientSession.java
index 3a226f5..5b2e535 100644
--- a/src/com/isode/stroke/client/ClientSession.java
+++ b/src/com/isode/stroke/client/ClientSession.java
@@ -367,6 +367,7 @@ public class ClientSession {
else if (streamFeatures.hasAuthenticationMechanisms()) {
if (stream.hasTLSCertificate()) {
if (streamFeatures.hasAuthenticationMechanism("EXTERNAL")) {
+ authenticator = new EXTERNALClientAuthenticator();
state = State.Authenticating;
stream.writeElement(new AuthRequest("EXTERNAL",new SafeByteArray("")));
}