<Attempt to invoke virtual method 'void androidx.l...
# stackoverflow
u
Attempt to invoke virtual method 'void androidx.lifecycle.MutableLiveData.setValue(java.lang.Object)' on a null object reference (Android Kotlin) Sorry for the long title, however, I am unsure where this error is at in my code, however, I do suspect the error lies in the implementation of the liveData and Observation. The app which I am working on is an Unscrambler word app where users have to unscramble the letters displayed on the fragment. My code so far consists of 2 Kotlin classes listed below, a fragment and a ViewModel class. I have currently assigned the variable _currentScrambledWord as a MutableLiveData() and utilised the...