mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-30 10:12:06 +01:00
Fixed freezing when parsing error. SMACK-166
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@5061 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
157a1e9659
commit
c13766569e
1 changed files with 1 additions and 3 deletions
|
@ -314,9 +314,7 @@ public class PacketParserUtils {
|
||||||
int eventType = parser.next();
|
int eventType = parser.next();
|
||||||
if (eventType == XmlPullParser.START_TAG) {
|
if (eventType == XmlPullParser.START_TAG) {
|
||||||
if (parser.getName().equals("text")) {
|
if (parser.getName().equals("text")) {
|
||||||
parser.next();
|
message = parser.nextText();
|
||||||
message = parser.getText();
|
|
||||||
parser.next();
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Condition tag, it can be xmpp error or an application defined error.
|
// Condition tag, it can be xmpp error or an application defined error.
|
||||||
|
|
Loading…
Reference in a new issue