From f9880283e960f9edd4de2eb1bd10e202d47db9cd Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 1 Jul 2019 20:47:21 +0200 Subject: [PATCH] Fix / crash when reporting bug with no active session --- .../im/vector/riotredesign/features/rageshake/BugReporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/riotredesign/features/rageshake/BugReporter.kt b/vector/src/main/java/im/vector/riotredesign/features/rageshake/BugReporter.kt index c92ec1d26d..3e0df758fc 100755 --- a/vector/src/main/java/im/vector/riotredesign/features/rageshake/BugReporter.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/rageshake/BugReporter.kt @@ -203,7 +203,7 @@ class BugReporter @Inject constructor(private val activeSessionHolder: ActiveSes var userId = "undefined" var olmVersion = "undefined" - activeSessionHolder.getActiveSession().let { session -> + activeSessionHolder.getSafeActiveSession().let { session -> userId = session.sessionParams.credentials.userId deviceId = session.sessionParams.credentials.deviceId ?: "undefined" olmVersion = session.getCryptoVersion(context, true)