Skip to content

Fix crash when cleaning old attribution data if SharedPreferences has a null key#742

Merged
tonidero merged 2 commits into
mainfrom
fix-devicecache-cleanup-crash
Jan 17, 2023
Merged

Fix crash when cleaning old attribution data if SharedPreferences has a null key#742
tonidero merged 2 commits into
mainfrom
fix-devicecache-cleanup-crash

Conversation

@tonidero

Copy link
Copy Markdown
Contributor

Description

Deals with #737

If devs store something in SharedPreferences with a null key, it can cause a crash the next time the SDK is configured. This PR just ignores that key when cleaning up SDK values from SharedPreferences.

@tonidero tonidero added the pr:fix A bug fix label Jan 17, 2023
@tonidero tonidero requested a review from a team January 17, 2023 12:07
Comment thread common/src/test/java/com/revenuecat/purchases/common/DeviceCacheTest.kt Outdated
Co-authored-by: Andy Boedo <andresboedo@gmail.com>
@tonidero tonidero merged commit d3377fe into main Jan 17, 2023
@tonidero tonidero deleted the fix-devicecache-cleanup-crash branch January 17, 2023 13:59
tonidero pushed a commit that referenced this pull request Jan 19, 2023
**This is an automatic release.**

### Bugfixes
* Fix crash when cleaning old attribution data if SharedPreferences has
a null key (#742) via Toni Rico (@tonidero)
### Other Changes
* Update Gemfile.lock (#734) via Cesar de la Vega (@vegaro)
* remove stalebot in favor of SLAs in Zendesk (#725) via Andy Boedo
(@aboedo)
* Update fastlane-plugin-revenuecat_internal to latest version (#724)
via Cesar de la Vega (@vegaro)
* Bumps AGP to 7.3.1 (#718) via Cesar de la Vega (@vegaro)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants