Commit a03fcc49 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed NPE. JM-536

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3344 b35dd754-fafc-0310-a699-88a17e54d16e
parent d9c52daa
......@@ -97,6 +97,10 @@ public class MulticastRouter extends BasicModule implements ServerFeaturesProvid
// remote domains that should receive the packet too
for (Iterator it=addresses.elementIterator("address");it.hasNext();) {
Element address = (Element) it.next();
// Skip addresses of type noreply since they don't have any address
if (Type.noreply.toString().equals(address.attributeValue("type"))) {
continue;
}
String jid = address.attributeValue("jid");
// Only send to local users and if packet has not already been delivered
if (jid.contains(localDomain) && address.attributeValue("delivered") == null) {
......
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