Skip to content

Conversation

@david-driscoll
Copy link
Member

… params. When a null is given we won't error, instead we will just pretend we never got any params at all.

cc @tintoy

… params. When a null is given we won't error, instead we will just pretend we never got any params at all.
@david-driscoll david-driscoll requested a review from tintoy January 10, 2018 00:10
Copy link
Collaborator

@tintoy tintoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, looks good - keen to try it out :)


// Special case params such that if we get a null value (from a non spec compliant system)
// that we don't fall over and throw an error.
if (@params?.Type == JTokenType.Null)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch - I would have forgotten to do this bit :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we don't want to try to deserialize the value.

@david-driscoll
Copy link
Member Author

gotta make sure linux is happy then I'll push out as a new version.

@david-driscoll david-driscoll merged commit c990609 into master Jan 10, 2018
@david-driscoll david-driscoll deleted the update/spec branch June 2, 2020 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants