mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-29 09:42: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:
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) {
|
public boolean accept(Packet packet) {
|
||||||
return packet.getTo().indexOf(to) != -1;
|
if (packet.getTo() == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return packet.getTo().indexOf(to) != -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue