1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02: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:
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) { public void disconnect(Presence unavailablePresence) {
shutdown(unavailablePresence); shutdown(unavailablePresence);
if (roster != null) {
roster.cleanup(); roster.cleanup();
roster = null; roster = null;
}
wasAuthenticated = false; wasAuthenticated = false;