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(ndk): Skip null metadata values from serialization #510

Closed
wants to merge 1 commit into from

Conversation

kattrali
Copy link
Contributor

@kattrali kattrali commented Jul 1, 2019

In the event that a metadata value is null, the patched section would
crash in GetStringUTFChars(). This is most easily reproduced by calling
notify/throwing on an exception with no message.

Tests

  • Manually tested by throwing an exception without a message. This would propagate null through leaveErrorBreadcrumb() which would then be serialized by the native layer.

Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

The fix itself looks good, but the mazerunner scenario won't run on browserstack as-is. It'd be good to make the test run on the new infrastructure (and clear up any ambiguities in the testing instructions)

CHANGELOG.md Show resolved Hide resolved
features/handled_exception.feature Show resolved Hide resolved
In the event that a metadata value is null, the patched section would
crash in GetStringUTFChars(). This is most easily reproduced by calling
notify/throwing on an exception with no message.
@kattrali kattrali force-pushed the kattrali/fix-empty-metadata-bug branch from 265efaa to 2f270bc Compare July 2, 2019 10:43
Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

LGTM once CI is green.

@kattrali kattrali closed this Jul 2, 2019
@kattrali kattrali deleted the kattrali/fix-empty-metadata-bug branch July 2, 2019 12:38
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.

None yet

2 participants