mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-10-31 17:25:58 +01:00
Use assertAtStartTag in parseStanza
This commit is contained in:
parent
08c1f2c850
commit
f4aaf387d4
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue