aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Whited <sam@samwhited.com>2014-11-16 10:04:45 -0500
committerSam Whited <sam@samwhited.com>2014-11-16 10:04:45 -0500
commit5765a91db67590644fcc11e0cc10e6854412a2a1 (patch)
tree93d2e4dd4a53f8830ce8dcf1986ef2c5e5bbfd56 /src
parent84b2ce10b7a38aaaa9d2d3ee8ad4e1213402640f (diff)
Fix fetching accounts by JIDs
Fixes a crash when publishing an avatar
Diffstat (limited to '')
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index 509030c6..d2cbbe7c 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -1825,7 +1825,7 @@ public class XmppConnectionService extends Service {
public Account findAccountByJid(final Jid accountJid) {
for (Account account : this.accounts) {
- if (account.getJid().toBareJid().equals(accountJid)) {
+ if (account.getJid().toBareJid().equals(accountJid.toBareJid())) {
return account;
}
}