Commit 7c1565b8 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed #getSession(JID) to return null if param is null.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@786 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0d5461af
......@@ -464,8 +464,11 @@ public class SessionManager extends BasicModule implements ConnectionCloseListen
* @return the <code>Session</code> associated with the JID.
*/
public Session getSession(JID from) {
Session session = null;
if (from == null) {
return null;
}
Session session = null;
// Initially Check preAuthenticated Sessions
session = preAuthenticatedSessions.get(from.toString());
if(session != 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