mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 01:29:38 +02: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:
parent
c59a6010e1
commit
fa71ff9605
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue