Skip to content

fix: Check if Event Attributes are empty before truncating#35

Merged
alexs-mparticle merged 2 commits intodevelopmentfrom
fix/SQDSDKS-5063-handle-null-custom-attribute-dict
Feb 17, 2023
Merged

fix: Check if Event Attributes are empty before truncating#35
alexs-mparticle merged 2 commits intodevelopmentfrom
fix/SQDSDKS-5063-handle-null-custom-attribute-dict

Conversation

@alexs-mparticle
Copy link
Copy Markdown
Contributor

Summary

  • If event attributes are set to null, the kit will throw an exception. We should be defensive and check to make sure the attributes are not actually empty or set to null.

Testing Plan

  • Run automated tests and use sample app to verify

Master Issue

Closes https://go.mparticle.com/work/SQDSDKS-5063

Comment thread packages/GA4Client/test/src/tests.js Outdated
Co-authored-by: Robert Ing <rmi22186@gmail.com>
@alexs-mparticle alexs-mparticle merged commit c17f92b into development Feb 17, 2023
@alexs-mparticle alexs-mparticle deleted the fix/SQDSDKS-5063-handle-null-custom-attribute-dict branch February 17, 2023 20:31
github-actions Bot pushed a commit that referenced this pull request Feb 22, 2023
## [1.0.6](v1.0.5...v1.0.6) (2023-02-22)

### Bug Fixes

* Check if Event Attributes are empty before truncating ([#35](#35)) ([c17f92b](c17f92b))
* Relocate config call earlier in kit initialization ([#34](#34)) ([4587fda](4587fda))
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