mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-19 10:32:05 +01:00
[core] Assert that 'event' is not END_DOCUMENT in forwardToEndTagOfDepth()
This commit is contained in:
parent
1564b98d60
commit
55299fb7e7
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue