debug: Debug null context.
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
aminecmi 2023-05-12 20:31:40 +02:00
parent 0aba41d8bf
commit 0de5bb9b37

View File

@ -530,7 +530,12 @@ class ArticleFragment : Fragment(), DIAware {
private fun openInBrowserAfterFailing() {
binding.progressBar.visibility = View.GONE
requireActivity().openInBrowserAsNewTask(this@ArticleFragment.item)
if (context != null) {
requireContext().openInBrowserAsNewTask(this@ArticleFragment.item)
} else {
Exception("openInBrowserAfterFailing context is null").sendSilentlyWithAcraWithName("openInBrowserAfterFailing > $context")
}
}
companion object {