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