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

Rare app crash in shared preferences migrator #1860

Merged
2 commits merged into from Jul 4, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jun 29, 2023

Goal

Prevent rare app crash while migrating old SharedPreferences data from older versions of bugsnag-android.

Changeset

Added nullable check and catching exception for shared preferences

Testing

Additional unit tests

@bugsnagbot
Copy link
Collaborator

bugsnagbot commented Jun 29, 2023

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1921.62 1696.73
arm64_v8a 680.33 459.15
armeabi_v7a 614.8 393.62
x86 754.04 532.86
x86_64 725.38 504.19

Generated by 🚫 Danger

@ghost ghost force-pushed the PLAT-10308_SharedPrefMigrator_can_crash_app branch from 5e5c357 to fe8c946 Compare June 29, 2023 10:50
@ghost ghost requested a review from lemnik June 29, 2023 10:50
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

Looks good, with some trivial changes 😄

CHANGELOG.md Outdated Show resolved Hide resolved
@ghost ghost force-pushed the PLAT-10308_SharedPrefMigrator_can_crash_app branch from fe8c946 to f6aa9a0 Compare June 29, 2023 12:39
@ghost ghost requested a review from lemnik June 29, 2023 12:39
@ghost ghost force-pushed the PLAT-10308_SharedPrefMigrator_can_crash_app branch from f6aa9a0 to 9c09137 Compare June 29, 2023 12:45
CHANGELOG.md Outdated Show resolved Hide resolved
@ghost ghost force-pushed the PLAT-10308_SharedPrefMigrator_can_crash_app branch from 9c09137 to 8313aaf Compare July 4, 2023 10:00
@ghost ghost requested a review from lemnik July 4, 2023 10:39
@ghost ghost force-pushed the PLAT-10308_SharedPrefMigrator_can_crash_app branch from 8313aaf to 0018c63 Compare July 4, 2023 12:39
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

LGTM

@ghost ghost merged commit e673f4a into next Jul 4, 2023
28 checks passed
@ghost ghost deleted the PLAT-10308_SharedPrefMigrator_can_crash_app branch July 4, 2023 13:05
@ghost ghost mentioned this pull request Jul 25, 2023
This pull request was closed.
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

3 participants