Skip to content

Comments

Fix incorrect casting of nullable value types#1036

Merged
mayuki merged 1 commit intomainfrom
feature/FixClientNullableValueTypeIllegalCast
Feb 18, 2026
Merged

Fix incorrect casting of nullable value types#1036
mayuki merged 1 commit intomainfrom
feature/FixClientNullableValueTypeIllegalCast

Conversation

@mayuki
Copy link
Member

@mayuki mayuki commented Feb 18, 2026

This PR fixes an issue caused by incorrect handling of nullable value types.

When a unary method or Hub method takes a nullable value type as an argument (e.g., FooAsync(int? value)) or has a nullable value type as its return type (e.g., UnaryResult<int?>), passing null may cause an AccessViolationException.

Fixes #1021

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.

7.0.6 Client getting System.AccessViolationException: Attempted to read or write protected memory.

1 participant