From 1303db9703680a07c2c015cef403c65b303ad913 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Tue, 13 Feb 2007 16:19:26 +0000 Subject: [PATCH] Fixed a case where null was returned. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7082 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/Roster.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/Roster.java b/source/org/jivesoftware/smack/Roster.java index d233eb2dd..e8d5b95f8 100644 --- a/source/org/jivesoftware/smack/Roster.java +++ b/source/org/jivesoftware/smack/Roster.java @@ -432,7 +432,7 @@ public class Roster implements ConnectionListener { String key = getPresenceMapKey(StringUtils.parseBareAddress(user)); Map userPresences = presenceMap.get(key); if (userPresences == null) { - return null; + return new Presence(Presence.Type.unavailable); } else { // Find the resource with the highest priority