[fenix] Closes https://github.com/mozilla-mobile/fenix/issues/2900: Fix crash when trying to show site info panel with

a null session.
pull/600/head
Arturo Mejia 5 years ago committed by Sawyer Blatz
parent 6237057252
commit 3ecb0d4e59

@ -702,7 +702,7 @@ class BrowserFragment : Fragment(), BackHandler, CoroutineScope {
}
private fun showQuickSettingsDialog() {
val session = requireNotNull(getSessionById())
val session = getSessionById() ?: return
launch {
val host = session.url.toUri()?.host
val sitePermissions: SitePermissions? = host?.let {

Loading…
Cancel
Save