Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefined method `sub' for nil:NilClass. Need to check if image is not nil. #91

Closed
artursbraucs opened this issue Dec 16, 2014 · 2 comments

Comments

@artursbraucs
Copy link

no_method_error.png

It seems there are cases when users don't have any picture and twitter.com returns nil. Could it be problem in this lib cause the code is trying to "sub" nil object?

If it helps, i can make pull request for this change.

@guilhermesimoes
Copy link
Contributor

Doesn't Twitter always return an image though? Every user has a default image. The Twitter API no longer returns default images?

@artursbraucs
Copy link
Author

I just checked out - twitter.com returned default image url if user has no image. Ok - it seems there might be problem in our side. Have a nice day!

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

No branches or pull requests

2 participants