mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 20:22:05 +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) {
|
public void disconnect(Presence unavailablePresence) {
|
||||||
shutdown(unavailablePresence);
|
shutdown(unavailablePresence);
|
||||||
|
|
||||||
|
if (roster != null) {
|
||||||
roster.cleanup();
|
roster.cleanup();
|
||||||
roster = null;
|
roster = null;
|
||||||
|
}
|
||||||
|
|
||||||
wasAuthenticated = false;
|
wasAuthenticated = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue