Commit 65373d45 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed for anonymous users.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@776 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6528880f
......@@ -173,7 +173,7 @@ public class PresenceUpdateHandler extends BasicModule implements ChannelHandler
private void initSession(Session session) throws UnauthorizedException, UserNotFoundException {
// Only user sessions need to be authenticated
if (!"".equals(session.getAddress().getNode())) {
if (session.getAddress().getNode() != null && !"".equals(session.getAddress().getNode())) {
String username = session.getAddress().getNode();
Roster roster = rosterManager.getRoster(username);
for (RosterItem item : roster.getRosterItems()) {
......
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