1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-25 15:52:06 +01:00

Fix for null pointer case.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1890 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-04-14 04:16:13 +00:00 committed by mtucker
parent 60eb780c1e
commit 1d37c49253

View file

@ -77,6 +77,11 @@ public class ToContainsFilter implements PacketFilter {
} }
public boolean accept(Packet packet) { public boolean accept(Packet packet) {
return packet.getTo().indexOf(to) != -1; if (packet.getTo() == null) {
return false;
}
else {
return packet.getTo().indexOf(to) != -1;
}
} }
} }