Skip to content

Fix NRE in target batching#10185

Merged
ladipro merged 2 commits intodotnet:mainfrom
ladipro:fix-batching-logcontext
May 29, 2024
Merged

Fix NRE in target batching#10185
ladipro merged 2 commits intodotnet:mainfrom
ladipro:fix-batching-logcontext

Conversation

@ladipro
Copy link
Copy Markdown
Member

@ladipro ladipro commented May 29, 2024

Fixes #10180

Context

#10102 made certain batching scenarios fail with a null-ref exception.

Changes Made

Moved the call to LogTargetBatchFinished to make sure that the loop doesn't exit with null targetLoggingContext.

Testing

New unit test with a repro project.

@ladipro ladipro enabled auto-merge (squash) May 29, 2024 12:10
@ladipro ladipro merged commit b963c24 into dotnet:main May 29, 2024
@ladipro ladipro deleted the fix-batching-logcontext branch May 29, 2024 13:02
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.

[Bug]: NRE in at Microsoft.Build.BackEnd.TargetEntry.<ExecuteTarget>d__44.MoveNext()

4 participants