ASP.NET Core improvements by vzabrodin · Pull Request #1512 · MessagePack-CSharp/MessagePack-CSharp · GitHub
Skip to content

ASP.NET Core improvements#1512

Merged
neuecc merged 2 commits into
MessagePack-CSharp:masterfrom
vzabrodin:asp-net-core-improvements
Oct 6, 2022
Merged

ASP.NET Core improvements#1512
neuecc merged 2 commits into
MessagePack-CSharp:masterfrom
vzabrodin:asp-net-core-improvements

Conversation

@vzabrodin

Copy link
Copy Markdown
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

neuecc commented Oct 6, 2022

Copy link
Copy Markdown
Member

@neuecc neuecc merged commit 8a149fe into MessagePack-CSharp:master Oct 6, 2022
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