Skip to content

Conversation

@stefanbaust
Copy link

made code more robust, should fix #141

made code more robust, should fix firebase#141
@Override
public void onConnected(@Nullable Bundle bundle) {
if (mEmail == null) {
if (mEmail == null || mEmail.equals("")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line can be replaced with TextUtils.isEmpty(mEmail)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should investigate under what circumstances a null / empty email address ever arrives here. I agree with sam however that if (TextUtils.isEmpty(mEmail) is a more descriptive check here.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty email issue happens due to privacy setting of some users, where you get name and profile image but email is null

@samtstern
Copy link
Contributor

@iainmcgin please review.

@SUPERCILEX
Copy link
Collaborator

SUPERCILEX commented Oct 17, 2016

This PR can be closed now: fixed in #357 (be7e0c3).

@SUPERCILEX SUPERCILEX mentioned this pull request Oct 23, 2016
10 tasks
@samtstern
Copy link
Contributor

#357 merged.

@samtstern samtstern closed this Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Facebook login error

5 participants