Commit 1d2017e2 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Minor fix for anonymous sessions.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1185 b35dd754-fafc-0310-a699-88a17e54d16e
parent da323375
......@@ -130,7 +130,8 @@ public class PresenceSubscribeHandler extends BasicModule implements ChannelHand
private Roster getRoster(JID address) {
String username = null;
Roster roster = null;
if (localServer.isLocal(address) && !"".equals(address.getNode())) {
if (localServer.isLocal(address) && address.getNode() != null &&
!"".equals(address.getNode())) {
username = address.getNode();
// Check for a cached roster:
roster = (Roster)CacheManager.getCache("username2roster").get(username);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment