Skip to content

Avoid NullReference when next token after reading $id or $ref is not a primitive #1902

Description

@jozkee

Using ReferenceHandling.Preserve, having a start object or start array as the value for metadata properties $id and $ref, causes the deserialize method to throw NullReferenceException.

We should prevent such behavior and throw a meaningful exception instead.

cc @ahsonkhan

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions