```suspend fun getNote(id: Int): Note{ Log.d("...
# getting-started
t
Copy code
suspend fun getNote(id: Int): Note{
    Log.d("NotesRepository", "Note id: ${noteDao.getNoteById(id)}")
    return noteDao.getNoteById(id)
}
this is the function from repository, dao is a part of room the issue i am facing is the function returns null even though it's non nullable how it can return null ?