mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
null check otr fingerprint before display
This commit is contained in:
parent
c4876fab1b
commit
5dd83a5fe6
@ -91,7 +91,9 @@ public final class CryptoHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String prettifyFingerprint(String fingerprint) {
|
public static String prettifyFingerprint(String fingerprint) {
|
||||||
if (fingerprint.length() < 40) {
|
if (fingerprint==null) {
|
||||||
|
return "";
|
||||||
|
} else if (fingerprint.length() < 40) {
|
||||||
return fingerprint;
|
return fingerprint;
|
||||||
}
|
}
|
||||||
StringBuilder builder = new StringBuilder(fingerprint);
|
StringBuilder builder = new StringBuilder(fingerprint);
|
||||||
|
Loading…
Reference in New Issue
Block a user