1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 18:48:00 +01:00

Fixed NPE in FromMatchesFilter

in cases where a 'null' FromMatchesFilter was used and the processed
message would have a non-null 'from' attribute.

Thanks to sylvia for reporting this.
This commit is contained in:
Florian Schmaus 2014-03-27 10:38:35 +01:00
parent c59a6010e1
commit fa71ff9605

View file

@ -94,7 +94,7 @@ public class FromMatchesFilter implements PacketFilter {
if (matchBareJID) {
from = StringUtils.parseBareAddress(from).toLowerCase();
}
return address.equals(from);
return from.equals(address);
}
public String toString() {