Commit 00e1da55 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Minor fix.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@711 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8cb740d2
......@@ -785,9 +785,11 @@ public class MUCRoomImpl implements MUCRoom {
router.route(message);
}
if (isLogEnabled()) {
MUCRole senderRole;
JID senderAddress;
MUCRole senderRole = null;
JID senderAddress = null;
if (message.getTo().getResource() != null) {
senderRole = occupants.get(message.getTo().getResource());
}
if (senderRole == null) {
// The room itself is sending the message
senderAddress = getRole().getRoleAddress();
......
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