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 errors related to niluser_defined value #65

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Conversation

camdendotlol
Copy link
Contributor

@camdendotlol camdendotlol commented Feb 20, 2024

Summary

This small PR fixes two issues where Core Data tried to access a user-defined field by its UUID without first checking if the user_defined field was actually a JSON object. An empty user-defined field can be either {} (an empty object) or nil, so I've fixed the issue by checking that user_defined isn't nil before proceeding to try to look up a value in it.

@camdendotlol camdendotlol changed the title Fix indexing error when user_defined field is nil Fix indexing error when user_defined field is nil Feb 20, 2024
@camdendotlol camdendotlol changed the title Fix indexing error when user_defined field is nil Fix errors related to niluser_defined value Feb 20, 2024
@camdendotlol camdendotlol merged commit 087cee7 into master Feb 20, 2024
@camdendotlol camdendotlol added the v0.1.31 Issues in v0.1.31 label Feb 20, 2024
@camdendotlol camdendotlol deleted the cm/search-nil-udf branch February 20, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v0.1.31 Issues in v0.1.31
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants