Commit 8188f631 authored by Armando Jagucki's avatar Armando Jagucki Committed by ajagucki

JM-1425: NPE when creating a group chat room for the default conference...

JM-1425: NPE when creating a group chat room for the default conference service with CS integration enabled.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10655 b35dd754-fafc-0310-a699-88a17e54d16e
parent dae25ab8
...@@ -240,6 +240,9 @@ public class ClearspaceMUCTranscriptManager implements MUCEventListener { ...@@ -240,6 +240,9 @@ public class ClearspaceMUCTranscriptManager implements MUCEventListener {
} }
private boolean isRoomOwner(JID roomJID, JID user) { private boolean isRoomOwner(JID roomJID, JID user) {
if (user == null || roomJID == null) {
return false;
}
MultiUserChatService chatService = MultiUserChatService chatService =
XMPPServer.getInstance().getMultiUserChatManager().getMultiUserChatService(roomJID); XMPPServer.getInstance().getMultiUserChatManager().getMultiUserChatService(roomJID);
MUCRoom room = chatService.getChatRoom(roomJID.getNode()); MUCRoom room = chatService.getChatRoom(roomJID.getNode());
......
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