loading...

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

TOP OF THREAD FULL DISCUSSION
re: this is the result from the Logcat:Attempt to invoke virtual method 'void android.arch.lifecycle.LiveData.observe(android.arch.lifecycle.LifecycleO...
devit951 profile image Ildarov github logo Ask Me Anything

To help you I need more information. Can you paste your code to gist.github.com/
and tell me in which line of code you got this exception.

devit951 profile image Ildarov github logo Ask Me Anything

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