1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-27 00:32:07 +01:00

Fixed another possible null case.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7083 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2007-02-13 16:21:24 +00:00 committed by matt
parent 1303db9703
commit 5d30c8ac26

View file

@ -488,7 +488,13 @@ public class Roster implements ConnectionListener {
return new Presence(Presence.Type.unavailable); return new Presence(Presence.Type.unavailable);
} }
else { else {
return userPresences.get(resource); Presence presence = userPresences.get(resource);
if (presence == null) {
return new Presence(Presence.Type.unavailable);
}
else {
return presence;
}
} }
} }