Skip to content

Conversation

@Arkatufus
Copy link
Contributor

@Arkatufus Arkatufus commented Sep 4, 2025

Superceeded by #7808

Copy link
Contributor Author

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review

handler1(e);
else
throw new ArgumentException(
$"Expected {nameof(obj)} to be of type {typeof(T)}, but was {obj.GetType()}");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The NRE was thrown here by obj.GetType() when obj is null.

The actual fix was to make sure that this wrapper also handles null and passes it to the handler delegate

@Arkatufus Arkatufus closed this Sep 4, 2025
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