Skip to content
New issue

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

Fix the case of null values in JSON #1487

Closed
wants to merge 3 commits into from
Closed

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Apr 26, 2016

Fixes #1466.

The cause was a nil value in the incoming JSON, which the generic
filtering code didn't expect.

I considered adding a recover to generic
filtering so that things like this don't crash the whole process, but decided
against. One reason is that it's better to discover these things while we're
still in alpha/beta. Second is that if we recover here, there could still be a
crash later in filtering our outputs.

Also took the opportunity to add a couple of system tests that combine json
and generic filtering.

Tudor Golubenco added 3 commits April 26, 2016 13:41
The cause was a nil value in the incoming JSON, which the generic
filtering code didn't expect.

I considered adding a `recover` to generic
filtering so that things like this don't crash the whole process, but decided
against. One reason is that it's better to discover these things while we're
still in alpha/beta. Second is that if we recover here, there could still be a
crash later in filtering our outputs.

Also took the opportunity to add a couple of system tests that combine json
and generic filtering.
@tsg tsg closed this Apr 26, 2016
@tsg tsg deleted the fix_null_in_json branch April 26, 2016 11:57
@tsg tsg restored the fix_null_in_json branch April 26, 2016 11:57
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.

1 participant