Commit f9f9abaa authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed NPE when shutting down the server.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8771 b35dd754-fafc-0310-a699-88a17e54d16e
parent a3102d68
......@@ -113,6 +113,10 @@ public class LocalOutgoingServerSession extends LocalSession implements Outgoing
// hostname (i.e. remote server). If no one exists then create a new session. The same
// session will be used for the same hostname for all the domains to authenticate
SessionManager sessionManager = SessionManager.getInstance();
if (sessionManager == null) {
// Server is shutting down while we are trying to create a new s2s connection
return false;
}
session = sessionManager.getOutgoingServerSession(hostname);
if (session == null) {
// Try locating if the remote server has previously authenticated with this server
......
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