I'm trying to create an user and store into my fir...
# android
l
I'm trying to create an user and store into my firebase database using livedata observer. When I start the app up and run it the first time, the authentication works. But when I log the user out and try to create another user my app crashes. Any idea why this may be?
g
What is exception?
l
The error message is coming from my next intent. It can't load it because the intent relies on my user UID, but since it's the authentication isn't working it's crashing the app. I believe it has to do with my Livedata.observer but I can't figure out what it is. Question: Do I need to destroy my fragment or Livedata observer if I'm no longer on that fragment. The way my app is structured is I have one activity (with a fragment navigation) for creating an user. Then another activity that is the main app =