From 5765a91db67590644fcc11e0cc10e6854412a2a1 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Sun, 16 Nov 2014 10:04:45 -0500 Subject: Fix fetching accounts by JIDs Fixes a crash when publishing an avatar --- .../java/eu/siacs/conversations/services/XmppConnectionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/eu/siacs/conversations') 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; } } -- cgit v1.2.3