Not able to access SavedStateHandle from @Hilt ViewModel
I have two fragments, and I want to access the todoId from the ViewModel of the second fragment, but I am encountering issues while trying to access it.
Here is the Problem I am facing...
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.test.todolist, PID: 14933
java.lang.NullPointerException
at com.test.todolist.ui.add_edit_todo.AddEditTodoViewModel.(AddEditTodoViewModel.kt:33)
at...