diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-04-25 14:42:32 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-04-25 14:42:32 +0200 |
commit | 82daf849aa9b68dbd61f61923d8d618630af50bf (patch) | |
tree | d0fbbcd5a835f8de43648994330667d86b4028c0 /src | |
parent | 77caf73103abb134e698e3eecaeefe799bc1265f (diff) |
fixed #1039
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/CryptoHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/CryptoHelper.java b/src/main/java/eu/siacs/conversations/utils/CryptoHelper.java index eb7e2c3c6..466bc4098 100644 --- a/src/main/java/eu/siacs/conversations/utils/CryptoHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/CryptoHelper.java @@ -91,6 +91,9 @@ public final class CryptoHelper { } public static String prettifyFingerprint(String fingerprint) { + if (fingerprint.length() < 40) { + return fingerprint; + } StringBuilder builder = new StringBuilder(fingerprint); builder.insert(8, " "); builder.insert(17, " "); |