1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-09-28 19:00:00 +02: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:
Gaston Dombiak 2007-02-20 18:48:26 +00:00 committed by gato
parent e9fc529ac9
commit 87fb2df3ec

View file

@ -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;