Commit f5875384 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed NPE when getting the session count and the parameter is null. JM-187


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1048 b35dd754-fafc-0310-a699-88a17e54d16e
parent c2c2c5b4
......@@ -843,6 +843,9 @@ public class SessionManager extends BasicModule {
}
public int getSessionCount(String username) {
if (username == null) {
return 0;
}
int sessionCount = 0;
SessionMap sessionMap = sessions.get(username);
if (sessionMap != null) {
......
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