1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-24 15:22:07 +01:00

[core] Add assert message in AbstractXMPPConnection.onStreamOpen()

This commit is contained in:
Florian Schmaus 2021-02-25 22:09:59 +01:00
parent d881395d05
commit 1a1a67a2c5

View file

@ -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");