From 3fe4678384d52c44e623e63248941f741c32c528 Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Thu, 3 Feb 2005 01:03:10 +0000 Subject: [PATCH] Modified to assume an error code of -1 if the received error does not include a code. SMACK-44 git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2454 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/PacketReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 697675ff6..cfe3464aa 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -546,7 +546,7 @@ class PacketReader { * @throws Exception if an exception occurs while parsing the packet. */ private XMPPError parseError(XmlPullParser parser) throws Exception { - String errorCode = null; + String errorCode = "-1"; String message = null; for (int i=0; i