Skip to content

Instantly share code, notes, and snippets.

View AlexStarc's full-sized avatar
🎯
Focusing

Alex Starchenko AlexStarc

🎯
Focusing
View GitHub Profile
FATAL EXCEPTION: main
Process: com.example.yandex_homework, PID: 18227
java.lang.ClassCastException: kotlin.collections.EmptyList cannot be cast to kotlin.collections.MutableList
at com.example.yandex_homework.presentation.view.TasksFragment.setUI(TaskFragment.kt:181)
at com.example.yandex_homework.presentation.view.TasksFragment.initVisibilityButton$lambda-6$lambda-5(TaskFragment.kt:198)
at com.example.yandex_homework.presentation.view.TasksFragment.$r8$lambda$eFLwFhqsng7J_0sXl0HBSYTZES0(Unknown Source:0)
at com.example.yandex_homework.presentation.view.TasksFragment$$Extern
14:22:13.572 4363 AndroidRuntime E FATAL EXCEPTION: ConnectivityThread
Process: com.example.yandex_homework, PID: 4363
java.lang.IllegalStateException: Can't access the Fragment View's LifecycleOwner when getView() is null i.e., before onCreateView() or after onDestroyView()
at androidx.fragment.app.Fragment.getViewLifecycleOwner(Fragment.java:363)
at com.example.yandex_homework.presentation.view.TasksFragment.coroutineLoadTasks(TaskFragment.kt:203)
at com.example.yandex_homework.presentation.view.TasksFragment.access$coroutineLoadTasks(TaskFragment.kt:44)