mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
prevent null pointer when trying to display device fingerprints of not existing sessions
This commit is contained in:
parent
b23cb5a9e4
commit
9e1393bc1c
@ -619,6 +619,9 @@ public abstract class XmppActivity extends Activity {
|
||||
protected boolean addFingerprintRow(LinearLayout keys, final Account account, final String fingerprint, boolean highlight) {
|
||||
final XmppAxolotlSession.Trust trust = account.getAxolotlService()
|
||||
.getFingerprintTrust(fingerprint);
|
||||
if (trust == null) {
|
||||
return false;
|
||||
}
|
||||
return addFingerprintRowWithListeners(keys, account, fingerprint, highlight, trust, true,
|
||||
new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user