Skip to content

Crash NullPointerException from email of CredentialSaveActivity when upgrade to ver 9.0.0 #2208

@NamTranDev

Description

@NamTranDev

Fatal Exception: java.lang.NullPointerException
Parameter specified as non-null is null: method com.firebase.ui.auth.ui.credentials.CredentialSaveActivity$Companion.createIntent, parameter email

com.firebase.ui.auth.ui.credentials.CredentialSaveActivity$Companion.createIntent (Unknown Source:12)

My code :

signInWithOnlyOption(
                        when (authenType) {
                            AuthenType.GOOGLE -> AuthUI.IdpConfig.GoogleBuilder().build()
                            AuthenType.FACE_BOOK -> (activity as BaseActivity).getFaceBookProvider()
                            else -> AuthUI.IdpConfig.EmailBuilder()
                                .setDefaultEmail(authenManager.getEmail()).build()
                        }
                    )

This crash error never happened when using the old version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions