mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -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) {
|
protected boolean addFingerprintRow(LinearLayout keys, final Account account, final String fingerprint, boolean highlight) {
|
||||||
final XmppAxolotlSession.Trust trust = account.getAxolotlService()
|
final XmppAxolotlSession.Trust trust = account.getAxolotlService()
|
||||||
.getFingerprintTrust(fingerprint);
|
.getFingerprintTrust(fingerprint);
|
||||||
|
if (trust == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return addFingerprintRowWithListeners(keys, account, fingerprint, highlight, trust, true,
|
return addFingerprintRowWithListeners(keys, account, fingerprint, highlight, trust, true,
|
||||||
new CompoundButton.OnCheckedChangeListener() {
|
new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user