mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 21:17:58 +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:
parent
322292cad9
commit
1303db9703
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue