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

Nested Ask async await causes null-pointer exception in ActorTaskScheduler #855

Closed
Danthar opened this issue Apr 15, 2015 · 2 comments
Closed

Comments

@Danthar
Copy link
Member

Danthar commented Apr 15, 2015

When nesting Ask statements as described in this gist: https://gist.github.com/Danthar/d1fe5581a6ba13ca6e30
A problem occurs causing the first Ask to never return. An exception from the ActorTaskScheduler seems to be the culprit.

@rogeralsing
Copy link
Contributor

The issue have been identified to be at:
https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka/Dispatch/ActorTaskScheduler.cs#L56

Ambient state can be null in cases where e.g. a TaskCompletionSource is beeing completed from the outside, e.g. in a FutureActorRef while the awaiting code is under the ActorTaskScheduler control.

rogeralsing added a commit that referenced this issue Apr 15, 2015
bugfix for #855 courtesy of rogeralsing
@rogeralsing
Copy link
Contributor

PR merged

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

3 participants