mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +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:
parent
60eb780c1e
commit
1d37c49253
1 changed files with 6 additions and 1 deletions
|
@ -77,6 +77,11 @@ public class ToContainsFilter implements PacketFilter {
|
|||
}
|
||||
|
||||
public boolean accept(Packet packet) {
|
||||
if (packet.getTo() == null) {
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return packet.getTo().indexOf(to) != -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue