Bug #4167

crash if logout during contacts list sync

Added by hans about 3 years ago. Updated over 2 years ago.

Status:ResolvedStart date:11/28/2014
Priority:NormalDue date:
Assignee:hans% Done:

0%

Category:-
Target version:v14.2 bug fix update!
Component:

Description

java.lang.IllegalStateException: Not logged in to server.
at org.jivesoftware.smack.Roster.createEntry(Roster.java:281)
at info.guardianproject.otr.app.im.plugin.xmpp.XmppConnection$XmppContactListManager.doAddContactToListAsync(XmppConnection.java:2213)
at info.guardianproject.otr.app.im.engine.ContactListManager.addContactToListAsync(ContactListManager.java:384)
at info.guardianproject.otr.app.im.engine.ContactList.addContact(ContactList.java:107)
at info.guardianproject.otr.app.im.service.ContactListAdapter.addContact(ContactListAdapter.java:52)
at info.guardianproject.otr.app.im.app.AddContactActivity.inviteBuddies(AddContactActivity.java:205)
at info.guardianproject.otr.app.im.app.AddContactActivity$2$1.run(AddContactActivity.java:274)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5319)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)

History

#1 Updated by n8fr8 over 2 years ago

  • Target version changed from v14 - Armadillo's Agram to v14.2 bug fix update!

#2 Updated by n8fr8 over 2 years ago

  • Status changed from In Progress to Resolved

We now look for and catch this exception and handle it properly w/o crashing

catch (IllegalStateException e) {
String msg = "Not logged in to server while updating remote roster";
debug(TAG, msg, e);
throw new ImException(msg);
}

Also available in: Atom PDF