https://kotlinlang.org logo
Title
u

user

07/04/2022, 3:51 PM
Livedata room : dao query returns null in my MVVM project I am using live data queries to DAO to update the live data of the list of data in my ViewModel and then bind this livedata to adapter binded to recycler view in the fragment, it works correct except for the case when there are 2 queries in a row to room database , so it returns null pointer and doesn't properly update UI. Part of the fragment code: @AndroidEntryPoint class HomeFragment : Fragment(), NoteCardAdapter.NoteTouchListener, SearchView.OnQueryTextListener{...