<App keeps crashing and Logcat states "lateinit pr...
# stackoverflow
u
App keeps crashing and Logcat states "lateinit property todoAdapter has not been initialized" This is the Main activity for a simple todo list app if you want to see more of the code then please let me know When private lateinit var todoAdapter: TodoAdapter is removed app no longer crashes but the app will no longer show the todo item on the recycler view "package com.example.todoit import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.TextUtils import android.widget.Toast import androidx.recyclerview.widget.LinearLayoutManager import...