1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-16 04:12:04 +01:00

Added null check.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1840 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-03-07 19:46:49 +00:00 committed by mtucker
parent ce9c75d057
commit 842527ecdb

View file

@ -76,6 +76,11 @@ public class FromContainsFilter implements PacketFilter {
} }
public boolean accept(Packet packet) { public boolean accept(Packet packet) {
if (packet.getFrom() != null) {
return packet.getFrom().indexOf(from) != -1; return packet.getFrom().indexOf(from) != -1;
} }
else {
return false;
}
}
} }