Skip to content

Fix inconsistent setting of null value types#3091

Merged
JamesNK merged 2 commits intomasterfrom
jamesnk/unbox-null-fix
Dec 30, 2025
Merged

Fix inconsistent setting of null value types#3091
JamesNK merged 2 commits intomasterfrom
jamesnk/unbox-null-fix

Conversation

@JamesNK
Copy link
Owner

@JamesNK JamesNK commented Dec 30, 2025

DynamicValueProvider errors when setting a null value type. This is inconsistent with other reflection providers.

Fix by checking if value is null before unboxing.

@JamesNK JamesNK merged commit a162f27 into master Dec 30, 2025
3 checks passed
@JamesNK JamesNK deleted the jamesnk/unbox-null-fix branch December 30, 2025 02:33
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.

1 participant