re: I'm an Android Developer(Java/Kotlin), pre-middle level, Ask Me Anything! VIEW POST

TOP OF THREAD FULL DISCUSSION
re: 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)

{
return userrepository.getUser(username,mdp);
}

code of conduct - report abuse