From df169511d4201a8850a99e07d3b437a23391b4bd Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Tue, 2 Oct 2012 13:50:14 +0100 Subject: Don't crash when overriding the connect host diff --git a/src/com/isode/stroke/network/Connector.java b/src/com/isode/stroke/network/Connector.java index b1ee73c..983882b 100644 --- a/src/com/isode/stroke/network/Connector.java +++ b/src/com/isode/stroke/network/Connector.java @@ -33,6 +33,8 @@ public class Connector { assert serviceQuery == null; assert timer == null; queriedAllServices = false; + serviceQueryResults = new ArrayList(); + if (doServiceLookups) { serviceQuery = resolver.createServiceQuery("_xmpp-client._tcp." + hostname); serviceQuery.onResult.connect(new Slot1>() { -- cgit v0.10.2-6-g49f6