Fix NPE: consider unknown keys UNDECIDED
This commit is contained in:
parent
77920c7aa6
commit
e10a6c5b87
|
@ -64,7 +64,8 @@ public class XmppAxolotlSession {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected SQLiteAxolotlStore.Trust getTrust() {
|
protected SQLiteAxolotlStore.Trust getTrust() {
|
||||||
return sqLiteAxolotlStore.getFingerprintTrust(fingerprint);
|
SQLiteAxolotlStore.Trust trust = sqLiteAxolotlStore.getFingerprintTrust(fingerprint);
|
||||||
|
return (trust == null)? SQLiteAxolotlStore.Trust.UNDECIDED : trust;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|
Loading…
Reference in a new issue