From 0014cff96343725fbc587d401e9e07a71d04b158 Mon Sep 17 00:00:00 2001 From: Jay Kline Date: Wed, 27 May 2009 16:51:39 +0000 Subject: [PATCH] Callback handler was not getting set properly git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11018 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/XMPPConnection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/org/jivesoftware/smack/XMPPConnection.java b/source/org/jivesoftware/smack/XMPPConnection.java index 1adfefb23..7da08fe42 100644 --- a/source/org/jivesoftware/smack/XMPPConnection.java +++ b/source/org/jivesoftware/smack/XMPPConnection.java @@ -226,7 +226,7 @@ public class XMPPConnection { config.setSASLAuthenticationEnabled(true); config.setDebuggerEnabled(DEBUG_ENABLED); this.configuration = config; - this.callbackHandler = null; + this.callbackHandler = config.getCallbackHandler(); } /** @@ -240,7 +240,7 @@ public class XMPPConnection { */ public XMPPConnection(ConnectionConfiguration config) { this.configuration = config; - this.callbackHandler = null; + this.callbackHandler = config.getCallbackHandler(); } /** @@ -1219,9 +1219,9 @@ public class XMPPConnection { else { ks = KeyStore.getInstance(configuration.getKeystoreType()); try { - ks.load(new FileInputStream(configuration.getKeystorePath()), pcb.getPassword()); pcb = new PasswordCallback("Keystore Password: ",false); callbackHandler.handle(new Callback[]{pcb}); + ks.load(new FileInputStream(configuration.getKeystorePath()), pcb.getPassword()); } catch(Exception e) { ks = null;