Skip to content

Conversation

@eerhardt
Copy link
Member

The TypeParseInfo.BinderInvocation is a nullable property. If it happens to be null, these two places will throw a null ref.

.NET Aspire is reusing this code to generate JSON schemas for appsettings.json files. See dotnet/aspire#1383. The plan is to keep this in sync using automated PRs to dotnet/aspire when the dotnet/runtime code is updated. (dotnet/aspire#1424). Contributing this fix back so these two code bases can stay in sync.

The TypeParseInfo.BinderInvocation is a nullable property. If it happens to be null, these two places will throw a null ref.

.NET Aspire is reusing this code to generate JSON schemas for appsettings.json files. See dotnet/aspire#1383. The plan is to keep this in sync using automated PRs to dotnet/aspire when the dotnet/runtime code is updated. (dotnet/aspire#1424). Contributing this fix back so these two code bases can stay in sync.
@ghost
Copy link

ghost commented Dec 16, 2023

Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.

Issue Details

The TypeParseInfo.BinderInvocation is a nullable property. If it happens to be null, these two places will throw a null ref.

.NET Aspire is reusing this code to generate JSON schemas for appsettings.json files. See dotnet/aspire#1383. The plan is to keep this in sync using automated PRs to dotnet/aspire when the dotnet/runtime code is updated. (dotnet/aspire#1424). Contributing this fix back so these two code bases can stay in sync.

Author: eerhardt
Assignees: -
Labels:

area-Extensions-Configuration

Milestone: -

@tarekgh tarekgh added the source-generator Indicates an issue with a source generator feature label Dec 19, 2023
@stephentoub stephentoub merged commit c3004e9 into dotnet:main Jan 2, 2024
@eerhardt eerhardt deleted the FixNullableInConfigBinderSG branch January 2, 2024 16:27
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Extensions-Configuration source-generator Indicates an issue with a source generator feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants