Fix Crash while moving to splash screen after force logout
Unable to reproduce the crash, as per logs context is null that used to start the new splash activity so add context null check.
@@ -144,7 +144,7 @@ class MyCoursesListFragment : OfflineSupportBaseFragment(), RefreshListener {
loadData(showProgress = true, fromCache = false)
} else {
when {
- response.code() == HttpStatus.UNAUTHORIZED -> {
+ response.code() == HttpStatus.UNAUTHORIZED && context != null -> {
environment.router?.forceLogout(context,
environment.analyticsRegistry,
environment.notificationDelegate)
