mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 05:52:06 +01:00
Check that roster is not null when disconnecting (fixed NPE).
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7221 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
e9fc529ac9
commit
87fb2df3ec
1 changed files with 4 additions and 2 deletions
|
@ -633,8 +633,10 @@ public class XMPPConnection {
|
|||
public void disconnect(Presence unavailablePresence) {
|
||||
shutdown(unavailablePresence);
|
||||
|
||||
roster.cleanup();
|
||||
roster = null;
|
||||
if (roster != null) {
|
||||
roster.cleanup();
|
||||
roster = null;
|
||||
}
|
||||
|
||||
wasAuthenticated = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue