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

Fixed #removeComponent to work well when shutting down the server.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@969 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0900e7dd
......@@ -98,7 +98,9 @@ public class InternalComponentManager implements ComponentManager, RoutableChann
}
// Remove the disco item from the server for the component that is being removed
XMPPServer.getInstance().getIQDiscoItemsHandler().removeComponentItem(componentJID.toBareJID());
if (XMPPServer.getInstance().getIQDiscoItemsHandler() != null) {
XMPPServer.getInstance().getIQDiscoItemsHandler().removeComponentItem(componentJID.toBareJID());
}
}
public void sendPacket(Component component, Packet packet) {
......
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