Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ASP.NET Core improvements - #1512

#1512
Merged
neuecc merged 2 commits into
MessagePack-CSharp:masterMessagePack-CSharp/MessagePack-CSharp:masterfrom
vzabrodin:asp-net-core-improvementsvzabrodin/MessagePack-CSharp:asp-net-core-improvementsCopy head branch name to clipboard
Oct 6, 2022
Merged

ASP.NET Core improvements#1512
neuecc merged 2 commits into
MessagePack-CSharp:masterMessagePack-CSharp/MessagePack-CSharp:masterfrom
vzabrodin:asp-net-core-improvementsvzabrodin/MessagePack-CSharp:asp-net-core-improvementsCopy head branch name to clipboard

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

Thanks, completely good.

@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.