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

Do not try to clear a non existent request #401

Merged
merged 1 commit into from Apr 13, 2015
Merged

Conversation

Tolriq
Copy link
Contributor

@Tolriq Tolriq commented Apr 13, 2015

During some test with Glide and FutureTarget it appears that when you cancel a FutureTarget very fast, the request may not yet be set in RequestFutureTarget leading to a crash.

This simple PR fix this case.

@sjudd sjudd added the bug label Apr 13, 2015
@sjudd sjudd added this to the 3.6.0 milestone Apr 13, 2015
@sjudd
Copy link
Collaborator

sjudd commented Apr 13, 2015

As you mentioned in #402 there's probably more going wrong here. I'm going to accept this PR anyway, because no Target should assume that its request is non-null.

sjudd added a commit that referenced this pull request Apr 13, 2015
Do not try to clear a non existent request
@sjudd sjudd merged commit f20687d into bumptech:master Apr 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants