We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey folks,
we discovered that we get a panic if we apply the following operations to a JSON:
The panic occurs here: https://github.com/evanphx/json-patch/blob/master/v5/patch.go#L509-L513
I think the problem is that it is only checked if next is nil, but not next.raw. So then it panics in l.513 at *next.raw.
next
nil
next.raw
*next.raw
The text was updated successfully, but these errors were encountered:
4a9dce7
Merge pull request #196 from evanphx/b-null-mistype-panic
3da7b27
Handle null correctly when introduced by replace. Fixes #171
Thank you very much!!
Sorry, something went wrong.
No branches or pull requests
Hey folks,
we discovered that we get a panic if we apply the following operations to a JSON:
The panic occurs here:
https://github.com/evanphx/json-patch/blob/master/v5/patch.go#L509-L513
I think the problem is that it is only checked if
next
isnil
, but notnext.raw
. So then it panics in l.513 at*next.raw
.The text was updated successfully, but these errors were encountered: