Closed Nazat95 closed 6 years ago
Can you recreate the bug from the sign up stage up until the save button click?
You can post screenshots where necessary and we will get to the bottom of this.
Hello, this is the link to the video for this bug: https://drive.google.com/file/d/1JMyWcxuljrN6XLpWP1109Vy4EVV8QUGf/view?usp=sharing
W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Fallback D/AndroidRuntime: Shutting down VM
--------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.cse442.friend_builder, PID: 3116
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.android.gms.common.api.GoogleApi.zzb(com.google.android.gms.common.api.internal.zzdd)' on a null object reference
at com.google.android.gms.internal.zzdvv.zzb(Unknown Source:4)
at com.google.android.gms.internal.zzdwc.setFirebaseUIVersion(Unknown Source:12)
at com.google.firebase.auth.FirebaseAuth.setFirebaseUIVersion(Unknown Source:2)
at com.firebase.ui.auth.AuthUI.
That's on a fresh device. It seems to stop crashing if you change an interest, save, then edit - save without doing anything.
I think I may have found the exact problem. When the user edits, then saves, a new user object is created. If the location isn't found, two of the parameters in the constructor are given bad inputs. I will make a pull request soon.
Actually, that doesn't seem to have solved it.
Description: The app crashes when I press"SAVE" in Profile. After installing it the first time I opened the app and signed in. Then pressed EDIT under Description. Without changing anything when I press SAVE the app crashes.
Device: Nexus 6P running 8.1.1 (API 27)