Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Conversation

@jbicket
Copy link

@jbicket jbicket commented Jun 26, 2015

I have been using this and got a crash when I logged in for the first time. Google did not populate all the values, and objectForKey (which is what the assignment does below) cannot handle null values so the library would crash.

My profile came back as:
info = {
email = "jbicket@samsara.com";
"first_name" = John;
image = "https://lh5.googleusercontent.com/-hTUulT9CemI/AAAAAAAAAAI/AAAAAAAAABs/o6pMlpQ0Lvk/photo.jpg";
"last_name" = Bicket;
name = "John Bicket";
verified = 1;
};

… present in response

objectForKey (which is what the assignment does below) cannot handle null values.

While testing my profile came back as the following:
info = {
 email = "jbicket@samsara.com";
 "first_name" = John;
 image = "https://lh5.googleusercontent.com/-hTUulT9CemI/AAAAAAAAAAI/AAAAAAAAABs/o6pMlpQ0Lvk/photo.jpg";
 "last_name" = Bicket;
 name = "John Bicket";
 verified = 1;
};
@konradholub
Copy link

+1

1 similar comment
@plzen
Copy link

plzen commented Mar 1, 2016

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants