dotnet / dotnet/msbuild

NullReferenceException in BuildComponentEntry: LoggingService is null

Open
#2,871 2 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

We specify `null` for the LoggingService here:
https://github.com/Microsoft/msbuild/blob/a80ce1f1ec82586a946e0a3edcfb0fa760732133/src/Build/BackEnd/Components/BuildComponentFactoryCollection.cs#L80

and then attempt to access the _factory (which is null) for logging service here:

```
> Microsoft.Build.BackEnd.BuildComponentFactoryCollection.BuildComponentEntry.GetInstance Line 220 C# Symbols loaded.
Microsoft.Build.BackEnd.BuildComponentFactoryCollection.GetComponent Line 156 C# Symbols loaded.
Microsoft.Build.Execution.BuildManager.Microsoft.Build.BackEnd.IBuildComponentHost.LoggingService.get Line 319 C# Symbols loaded.
Microsoft.Build.Execution.BuildSubmission.CompleteLogging Line 229 C# Symbols loaded.
Microsoft.Build.Execution.BuildManager.ExecuteSubmission.AnonymousMethod__0 Line 877 C# Symbols loaded.
Microsoft.Build.Execution.BuildManager.ProcessWorkQueue Line 993 C# Symbols loaded.
Microsoft.Build.Execution.BuildManager.BeginBuild.AnonymousMethod__48_0 Line 450 C# Symbols loaded.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.