Commit 84c9cd29 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Added sanity-check.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1444 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8fd7c4e4
...@@ -203,6 +203,9 @@ public class MUCRoleImpl implements MUCRole { ...@@ -203,6 +203,9 @@ public class MUCRoleImpl implements MUCRole {
} }
public void send(Packet packet) { public void send(Packet packet) {
if (packet == null) {
return;
}
packet.setTo(user.getAddress()); packet.setTo(user.getAddress());
router.route(packet); router.route(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