mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 23:42:06 +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:
parent
f5c17aa6f3
commit
3fe4678384
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue