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

[Bugfix] Fix varArrayToNSArray and varObjectToNSDictionary #853

Closed
wants to merge 1 commit into from

Conversation

danra
Copy link
Contributor

@danra danra commented Feb 16, 2021

Fix varArrayToNSArray and varObjectToNSDictionary handling of nested arrays.

var::isObject() returns true for array variants, so it must be tested after var::isArray().

…f nested arrays

var::isObject() returns true for array variants, so it must be tested after var::isArray()
@danra
Copy link
Contributor Author

danra commented Sep 24, 2023

Ping. This is a straightforward bugfix. Please merge it in.

@Anthony-Nicholls
Copy link
Contributor

Hi @danra thanks for reporting. I've been looking into this. I've added some tests and I'm able to reproduce a bug likely caused by the issue you've raised. I think I can make some of the functions more resiliant than they currently are and probably remove a few of the functions too. However, I would like to know more about the issues you are facing with these functions. These functions are not meant to be part of the user facing library they are internal helpers. Are you using these functions directly? or did you encounter a bug via an indirect use of them? Thanks.

@danra
Copy link
Contributor Author

danra commented Oct 4, 2023

It's been a long time - I don't think I've used these directly, rather that I've seen that the end result of converting a var had some NSObjects internally instead of the NSArray/Dictionary objects I expected

@Anthony-Nicholls
Copy link
Contributor

Hi @danra, thanks for reporting. A fix for this has been merged into develop. Please let me know if you experience any more issues with this code.

@danra danra deleted the fix_objchelpers branch March 4, 2024 19:36
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