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

Object-based dynamic encoding fails with null values #1198

Closed
ankushg opened this issue Nov 12, 2020 · 0 comments
Closed

Object-based dynamic encoding fails with null values #1198

ankushg opened this issue Nov 12, 2020 · 0 comments
Assignees
Labels

Comments

@ankushg
Copy link
Contributor

ankushg commented Nov 12, 2020

Describe the bug
If I try to decode a dynamic with a field whose value is null, I get an TypeError: Cannot convert undefined or null to object

To Reproduce
This test fails with TypeError: Cannot convert undefined or null to object
ankushg@8c45f6c

Expected behavior
Values of null can properly be encoded/decoded from dynamic without throwing an error 😊

Environment

  • Kotlin version: 1.4.10
  • Library version: 1.0.1
  • Kotlin platforms: JS
  • Gradle version: 6.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants