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:
Gaston Dombiak 2006-08-25 20:18:54 +00:00 committed by gato
parent 157a1e9659
commit c13766569e
1 changed files with 1 additions and 3 deletions

View File

@ -314,9 +314,7 @@ public class PacketParserUtils {
int eventType = parser.next();
if (eventType == XmlPullParser.START_TAG) {
if (parser.getName().equals("text")) {
parser.next();
message = parser.getText();
parser.next();
message = parser.nextText();
}
else {
// Condition tag, it can be xmpp error or an application defined error.