From b7fbd0614eabff2c4da1aeadd89dcec10fb77c17 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 23 Mar 2015 22:44:15 +0100 Subject: [PATCH] Fix assert statement in XMPPTCPConnection --- .../main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index edb07b632..68e688ab0 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -988,7 +988,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { if ("jabber:client".equals(parser.getNamespace(null))) { streamId = parser.getAttributeValue("", "id"); String reportedServiceName = parser.getAttributeValue("", "from"); - assert(reportedServiceName.equals(config.getServiceName())); + assert(config.getServiceName().equals(reportedServiceName)); } break; case "error":