1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-21 10:07:58 +01:00

[core] Assert that 'event' is not END_DOCUMENT in forwardToEndTagOfDepth()

This commit is contained in:
Florian Schmaus 2021-09-13 10:10:55 +02:00
parent 1564b98d60
commit 55299fb7e7

View file

@ -79,6 +79,7 @@ public class ParserUtils {
throws XmlPullParserException, IOException {
XmlPullParser.Event event = parser.getEventType();
while (!(event == XmlPullParser.Event.END_ELEMENT && parser.getDepth() == depth)) {
assert event != XmlPullParser.Event.END_DOCUMENT;
event = parser.next();
}
}