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

Convert metadata to map when notifying the NDK observer #513

Merged
merged 2 commits into from
Jul 4, 2019

Conversation

fractalwrench
Copy link
Contributor

Goal

Calling Bugsnag.setMetaData(MetaData()) crashed the process if the NDK was enabled. This is because the method emits an observable event to the NDK, which was expected as a Map in the JNI but sent as a MetaData.

Changeset

Altered the observable to emit a Map instead.

Tests

Tested the change manually in an example app, and added a mazerunner scenario.

@kattrali kattrali force-pushed the fix-metadata-ndk-crash branch from 57ae14a to a0b72f3 Compare July 3, 2019 12:48
@fractalwrench fractalwrench merged commit 8de32a7 into master Jul 4, 2019
@fractalwrench fractalwrench deleted the fix-metadata-ndk-crash branch July 4, 2019 07:34
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.

2 participants