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) {
|
||||
if (fingerprint.length() < 40) {
|
||||
if (fingerprint==null) {
|
||||
return "";
|
||||
} else if (fingerprint.length() < 40) {
|
||||
return fingerprint;
|
||||
}
|
||||
StringBuilder builder = new StringBuilder(fingerprint);
|
||||
|
|
Loading…
Reference in a new issue