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: modify() call throws an exception when user is not present #195

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

willpassidomo
Copy link
Contributor

Summary

When the AdId updates, we will generate a modify() request interanlly with the current user. When the current user is not present/null, this request currently fails with an error log or a thrown exception, if the SDK is running in Development mode. In order to avoid losing this modify request or causing an exception, we will defer the modify request until a user is present, if it is not already

Testing Plan

  • added instrumented test, confirmed that it reproduces the error without any changes

Master Issue

When the AdId updates, we will generate a modify() request interanlly with the current user. When the current user is not present/null, this request currently fails with an error log or a thrown exception, if the SDK is running in Development mode. In order to avoid losing this modify request or causing an exception, we will defer the modify request until a user is present, if it is not already
@willpassidomo willpassidomo force-pushed the fix/SQDSDKS-4270-modify-exception branch from bb8b552 to e3e3c98 Compare July 1, 2022 19:19
@willpassidomo willpassidomo merged commit 72731d5 into development Jul 1, 2022
@willpassidomo willpassidomo deleted the fix/SQDSDKS-4270-modify-exception branch July 1, 2022 19:50
github-actions bot pushed a commit that referenced this pull request Jul 1, 2022
## [5.41.3](v5.41.2...v5.41.3) (2022-07-01)

### Bug Fixes

* config migration logic causes kits to deinit on re-upgrade ([#196](#196)) ([ae210c4](ae210c4))
* modify() call throws an exception when user is not present ([#195](#195)) ([72731d5](72731d5))

### Updates & Maintenance

* Update Submodules ([99fed27](99fed27))
@mparticle-automation
Copy link
Collaborator

🎉 This PR is included in version 5.41.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants