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

Unchecked NSNull condition for RLMArray #69

Open
jrmybrault opened this issue Nov 4, 2015 · 1 comment
Open

Unchecked NSNull condition for RLMArray #69

jrmybrault opened this issue Nov 4, 2015 · 1 comment

Comments

@jrmybrault
Copy link

mc_createObjectFromJSONDictionary crashes whenever var propertyClass is a subclass of RLMArray and var value is NSNull. There should be the same check that in the RLMObject case.

if (!value || [value isEqual:[NSNull null]]) {
    continue;
}

By the way, why testing (!value) in a if (value) condition block ? It seems kinda useless.

@yuldong
Copy link

yuldong commented Nov 6, 2015

i met this question too

@jrmybrault jrmybrault mentioned this issue Nov 9, 2015
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

No branches or pull requests

2 participants