1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-23 04:22:05 +01:00

Fixed a case where null was returned.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7082 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2007-02-13 16:19:26 +00:00 committed by matt
parent 322292cad9
commit 1303db9703

View file

@ -432,7 +432,7 @@ public class Roster implements ConnectionListener {
String key = getPresenceMapKey(StringUtils.parseBareAddress(user));
Map<String, Presence> userPresences = presenceMap.get(key);
if (userPresences == null) {
return null;
return new Presence(Presence.Type.unavailable);
}
else {
// Find the resource with the highest priority