Commit 4e701361 authored by guus's avatar guus

OF-525: akrherz spotted the issue - comparing JIDs with Strings won't work.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12986 b35dd754-fafc-0310-a699-88a17e54d16e
parent 70bf7e0d
......@@ -148,7 +148,7 @@
try {
room = webManager.getMultiUserChatManager().getMultiUserChatService(roomJID).getChatRoom(roomName, address);
// Check if the room was created concurrently by another user
if (!room.getOwners().contains(address.toBareJID())) {
if (!room.getOwners().contains(new JID(address.toBareJID()))) {
errors.put("room_already_exists", "room_already_exists");
}
}
......
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