From 1a1a67a2c5e026d755c86cf5b6a8d4161255eb65 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 25 Feb 2021 22:09:59 +0100 Subject: [PATCH] [core] Add assert message in AbstractXMPPConnection.onStreamOpen() --- .../java/org/jivesoftware/smack/AbstractXMPPConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java index 5a2009db8..4a930003f 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -2214,7 +2214,8 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { * @return a String representing the corresponding stream end tag. */ protected String onStreamOpen(XmlPullParser parser) { - assert StreamOpen.ETHERX_JABBER_STREAMS_NAMESPACE.equals(parser.getNamespace()); + assert StreamOpen.ETHERX_JABBER_STREAMS_NAMESPACE.equals(parser.getNamespace()) : parser.getNamespace() + + " is not " + StreamOpen.ETHERX_JABBER_STREAMS_NAMESPACE; assert StreamOpen.UNPREFIXED_ELEMENT.equals(parser.getName()); streamId = parser.getAttributeValue("id");