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

Fixed null pointer exception when all tokens are already cached. #8

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Fixed null pointer exception when all tokens are already cached. #8

merged 1 commit into from
Jun 26, 2017

Conversation

Silic0nS0ldier
Copy link
Contributor

Picked this up while working on a console app that had to upload numerous images. Tracked it down to a null pointer exception that only occurs when all the tokens are cached.

Pull request fixes this by shifting the code block in question into the if statement just before, which provides the necessary protection.

@CXuesong
Copy link
Owner

Thank you for the PR!

@CXuesong CXuesong merged commit 77c71a3 into CXuesong:master Jun 26, 2017
@CXuesong
Copy link
Owner

Published in v0.5.1.

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.

2 participants