Skip to content

.enableAnonymousUsersAutoUpgrade() problem  #1654

@tharsoma

Description

@tharsoma

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:

  1. Sign in anonymously
  2. 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)

Screen Shot 2019-07-12 at 5 16 10 PM

Hope someone can help. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions