From 57c4ee4ee04e42662fe829244dbdeb747cb22162 Mon Sep 17 00:00:00 2001 From: Gurmeen Bindra Date: Wed, 26 Aug 2015 11:23:29 +0100 Subject: 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 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(""))); } -- cgit v0.10.2-6-g49f6