Seems like your user variable returned by getUser() method is null. Did you initialize it?
Yes i have initialise !
code in the Viewmodel Class:
public LiveData getUser(String username, String mdp)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.