1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-27 13:07:58 +01:00

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
This commit is contained in:
Gaston Dombiak 2005-02-03 01:03:10 +00:00 committed by gaston
parent f5c17aa6f3
commit 3fe4678384

View file

@ -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<parser.getAttributeCount(); i++) {
if (parser.getAttributeName(i).equals("code")) {