Skip to content

Conversation

@vzabrodin
Copy link
Contributor

context.ObjectType can be null in some cases. For example when context.Object is null.
Nullish object type could be passed to MessagePackSerializer.Serialize() method which cause exception.

I have added context.ObjectType == null condition. In this case object type will be taken directly from object: context.Object.GetType()

@neuecc
Copy link
Member

neuecc commented Oct 6, 2022

Thanks, completely good.

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.

2 participants