-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Hello,
This issue is similar to:
Similar to #1475
The problem:
When enable .enableAnonymousUsersAutoUpgrade() in AuthUI.getInstance().createSignInIntentBuilder(), and after signing in anonymously and then signing with Twitter/Facebook account that does not have an email attached to their accounts, gives an error "Unkown error". However, when signing in anonymously and then signing in with Twitter/Facebook account that has an email attached to them, things work fine.
It looks like enableAnonymousUsersAutoUpgrade() have an issue when trying to upgrade an anonymous account using Twitter/Facebook account which doesn't have an email attached to them.
Steps to reproduce:
- Sign in anonymously
- Sign in with Twitter/Facebook account that does not have an email attached their accounts.
Observed Results:
07-12 17:14:10.282 10030-10030/com.com2us.pixelgo.android.google.global.normal.pixelbnb E/AuthUI: A sign-in error occurred.
java.lang.NullPointerException: Email cannot be empty
at com.firebase.ui.auth.util.data.ProviderUtils.fetchSortedProviders(ProviderUtils.java:191)
at com.firebase.ui.auth.viewmodel.idp.SocialProviderResponseHandler$1.onFailure(SocialProviderResponseHandler.java:85)
at com.google.android.gms.tasks.zzl.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Hope someone can help. Thank you!
