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 crashes when passing the nil parameters #32

Closed
wants to merge 2 commits into from
Closed

fix crashes when passing the nil parameters #32

wants to merge 2 commits into from

Conversation

albert438
Copy link
Contributor

fix crashes when passing block, selector, id type parameters which the
value are nil.

当js中传递null或者undefined参数的时候在objc中会转化为[NSNull null]对象,按语义undefined应为nil。修复了当block、selector、id这三种参数值为nil的时候引发callSelector方法中invocation调用的崩溃问题。

chzhij5 and others added 2 commits June 11, 2015 21:21
fix crashes when passing  block, selector, id type parameters which the
value are nil.
@bang590
Copy link
Owner

bang590 commented Jun 11, 2015

I fixed this bug just now in 277e49b and add support for both NSNull and nil. Thank you!

@bang590 bang590 closed this Jun 11, 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

Successfully merging this pull request may close these issues.

None yet

3 participants