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

Check BackgroundService.ExecuteTask for null #60139

Merged
merged 2 commits into from
Oct 8, 2021
Merged

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Oct 7, 2021

In some scenarios, derived classes might not have called base.StartAsync, and ExecuteTask will still be null. Ensure we don't fail in those cases.

Fix #60131

My plan is to backport this to 6.0.

@ghost
Copy link

ghost commented Oct 7, 2021

Tagging subscribers to this area: @eerhardt, @maryamariyan
See info in area-owners.md if you want to be subscribed.

Issue Details

In some scenarios, derived classes might not have called base.StartAsync, and ExecuteTask will still be null. Ensure we don't fail in those cases.

Fix #60131

My plan is to backport this to 6.0.

Author: eerhardt
Assignees: -
Labels:

area-Extensions-Hosting

Milestone: -

In some scenarios, derived classes might not have called base.StartAsync, and ExecuteTask will still be null. Ensure we don't fail in those cases.

Fix dotnet#60131
@eerhardt
Copy link
Member Author

eerhardt commented Oct 8, 2021

runtime (Libraries Test Run release coreclr windows x86 Debug) failure is #60119

@eerhardt eerhardt merged commit cc7f2f9 into dotnet:main Oct 8, 2021
@eerhardt eerhardt deleted the Fix60131 branch October 8, 2021 14:12
@eerhardt
Copy link
Member Author

eerhardt commented Oct 8, 2021

/backport to release/6.0

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2021

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1320650905

@ghost ghost locked as resolved and limited conversation to collaborators Nov 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BackgroundService that doesn't call base.StartAsync leads to NullReferenceException - .NET 6 breaking change
3 participants