Fix / crash when reporting bug with no active session
This commit is contained in:
parent
f4b124d29f
commit
f9880283e9
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue