1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-22 03:52:06 +01:00

Use assertAtStartTag in parseStanza

This commit is contained in:
Florian Schmaus 2014-12-28 17:45:11 +01:00
parent 08c1f2c850
commit f4aaf387d4

View file

@ -146,7 +146,7 @@ public class PacketParserUtils {
* @throws Exception
*/
public static Packet parseStanza(XmlPullParser parser, XMPPConnection connection) throws Exception {
assert(parser.getEventType() == XmlPullParser.START_TAG);
ParserUtils.assertAtStartTag(parser);
final String name = parser.getName();
switch (name) {
case Message.ELEMENT: