-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Dictionary's DictionaryWithObjectsAndKeys() throws NSInvalidArgumentException #245
Comments
This is an equivalent Objective-C program:
When the nil argument is removed, the same kind of crash and message is displayed that the Go program experiences. |
Strange, it should work with nil but maybe nil isn't being converted properly? |
It looks like Objective-C doesn't like Go's nil. |
Wanna look into that? Write some failing tests and then look into the conversion code to see if you can fix and make tests pass with a PR. |
Actually I am finishing up my work now. |
These are all the methods I know that are effected by the same issue - having to terminate a list of objects using nil:
If anyone knows of more, please let me know. Thank you. |
Dictionary's DictionaryWithObjectsAndKeys() throws an NSInvalidArgumentException when it is used.
This example program will cause an exception to be thrown when ran:
Here is the error message produced by running this program:
The program still crashes when nil is removed from DictionaryWithObjectsAndKeys() arguments.
The text was updated successfully, but these errors were encountered: