Hello Dear friend!
Thankyou for your help!
I want implement the architures components, i have already do the part of the local Backend(ROOM).I across a problem with the remote backend(retrofit)!
Please help me!
What's the problem?
this is the result from the Logcat:Attempt to invoke virtual method 'void android.arch.lifecycle.LiveData.observe(android.arch.lifecycle.LifecycleOwner, android.arch.lifecycle.Observer)' on a null object reference!
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.
I have pasted.This is the link:
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.