Commit ead024c0 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fixed NullPointerException.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@825 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6508fab2
...@@ -356,11 +356,9 @@ public class SessionManager extends BasicModule implements ConnectionCloseListen ...@@ -356,11 +356,9 @@ public class SessionManager extends BasicModule implements ConnectionCloseListen
String username = recipient.getNode(); String username = recipient.getNode();
if (username == null || "".equals(username)) { if (username == null || "".equals(username)) {
if (resource != null) { if (resource != null) {
synchronized (username.intern()) { session = anonymousSessions.get(resource);
session = anonymousSessions.get(resource); if (session == null){
if (session == null){ session = getSession(recipient);
session = getSession(recipient);
}
} }
} }
} }
......
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