Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Assignee
Blake MeikeBlake MeikeReporter
Blake MeikeBlake MeikeStory Points
2Components
Fix versions
Affects versions
Priority
MajorInstabug
Open Instabug
Details
Details
Assignee
Blake Meike
Blake MeikeReporter
Blake Meike
Blake MeikeStory Points
2
Components
Fix versions
Affects versions
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty
PagerDuty
Sentry
Sentry
Sentry
Zendesk Support
Zendesk Support
Zendesk Support
Created February 29, 2024 at 5:55 PM
Updated March 4, 2024 at 4:38 PM
Resolved March 1, 2024 at 4:19 PM
If the Result contains illegal UTF-8 characters, the conversion from UTF-8 to UTF-16 in NativeFLEncoder_finishJSON will fail and return null and, thus, toJSON will return null.
I believe that the correct solution to this is that toJSON (and, by extension Array and Dictionary) should throw exception on failure. This would be an API change.
Currently these functions wrap the LiteCoreException thrown by LiteCore in an unchecked IllegalStateException.