dotnet / dotnet/sdk

dotnet tool install crash with NRE in ToolConfigurationDeserializer

Open
#53,355 3 comments 1 reaction 2 assignees Claimed by @marcpopMSFT View on GitHub
Area-Tools untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug

Was trying to debug why tool install fail with `Unhandled exception: Value cannot be null. (Parameter 'source')` error and found out that it fails here:

https://github.com/dotnet/sdk/blob/v10.0.103/src/Cli/dotnet/ToolPackage/ToolConfigurationDeserializer.cs#L70-L74

`ridSpecificPackages` is not checked for `null`

### Exceptions (if any)

It would have saved time to debug it if exception stack were logged, not only exception messages.

```
.NET SDK:
Version: 10.0.103
Commit: c2435c3e0f
Workload version: 10.0.100-manifests.c992be6d
MSBuild version: 18.0.11+c2435c3e0

```

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.