Skip to content

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

@jozkee

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions