Fix / crash when reporting bug with no active session

This commit is contained in:
Valere 2019-07-01 20:47:21 +02:00
parent f4b124d29f
commit f9880283e9
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ class BugReporter @Inject constructor(private val activeSessionHolder: ActiveSes
var userId = "undefined" var userId = "undefined"
var olmVersion = "undefined" var olmVersion = "undefined"
activeSessionHolder.getActiveSession().let { session -> activeSessionHolder.getSafeActiveSession().let { session ->
userId = session.sessionParams.credentials.userId userId = session.sessionParams.credentials.userId
deviceId = session.sessionParams.credentials.deviceId ?: "undefined" deviceId = session.sessionParams.credentials.deviceId ?: "undefined"
olmVersion = session.getCryptoVersion(context, true) olmVersion = session.getCryptoVersion(context, true)