diff --git a/app/src/main/java/ie/equalit/ceno/browser/BaseBrowserFragment.kt b/app/src/main/java/ie/equalit/ceno/browser/BaseBrowserFragment.kt index 91750f6f8..44c9760ed 100644 --- a/app/src/main/java/ie/equalit/ceno/browser/BaseBrowserFragment.kt +++ b/app/src/main/java/ie/equalit/ceno/browser/BaseBrowserFragment.kt @@ -700,6 +700,8 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Activit override fun onPortMessage( message: Any, port: WebExtension.Port ) { + if (context == null) + return requireContext().components.core.store.state.selectedTab?.let { tab -> // the percentage progress for the webpage val webPageLoadProgress = tab.content.progress ?: 0