From 031c4e57463021b69902c751ce68b41386e75e76 Mon Sep 17 00:00:00 2001 From: Valere Date: Wed, 3 Jul 2019 17:16:51 +0200 Subject: [PATCH] Crash on loggout https://github.com/matrix-org/riot-android-rageshakes/issues/5881 --- .../im/vector/matrix/android/internal/crypto/ObjectSigner.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/ObjectSigner.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/ObjectSigner.kt index 8ca33ea4..7b8e0199 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/ObjectSigner.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/ObjectSigner.kt @@ -44,7 +44,9 @@ internal class ObjectSigner @Inject constructor(private val credentials: Credent val content = HashMap() - content["ed25519:" + credentials.deviceId] = olmDevice.signMessage(strToSign)!! + + content["ed25519:" + credentials.deviceId] = olmDevice.signMessage(strToSign) + ?: "" //null reported by rageshake if happens during logout result[credentials.userId] = content