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

Fixed: attempt to insert nil object from objects[0] #726

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

ardavank
Copy link
Contributor

@ardavank ardavank commented Jan 6, 2018

Fixed the issue that was causing a crash in my application:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011310e12b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00000001127a6f41 objc_exception_throw + 48
	2   CoreFoundation                      0x000000011314e0cc _CFThrowFormattedException + 194
	3   CoreFoundation                      0x0000000113022951 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 321
	4   CoreFoundation                      0x00000001130227db +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59
	5   Mesghal                             0x000000010ace08c2 sendDynamicLink + 226
	6   Mesghal                             0x000000010ace0d0f __71+[RNFirebaseLinks application:continueUserActivity:restorationHandler:]_block_invoke + 447
	7   libdispatch.dylib                   0x0000000113fcd2f7 _dispatch_call_block_and_release + 12
	8   libdispatch.dylib                   0x0000000113fce33d _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x0000000113fd95f9 _dispatch_main_queue_callback_4CF + 628
	10  CoreFoundation                      0x00000001130d0e39 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	11  CoreFoundation                      0x0000000113095462 __CFRunLoopRun + 2402
	12  CoreFoundation                      0x0000000113094889 CFRunLoopRunSpecific + 409
	13  GraphicsServices                    0x00000001154d29c6 GSEventRunModal + 62
	14  UIKit                               0x000000010f60b5d6 UIApplicationMain + 159
	15  Mesghal                             0x000000010a6b688f main + 111
	16  libdyld.dylib                       0x000000011404ad81 start + 1
)

Fixed the issue that was causing a crash in my application:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011310e12b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00000001127a6f41 objc_exception_throw + 48
	2   CoreFoundation                      0x000000011314e0cc _CFThrowFormattedException + 194
	3   CoreFoundation                      0x0000000113022951 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 321
	4   CoreFoundation                      0x00000001130227db +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59
	5   Mesghal                             0x000000010ace08c2 sendDynamicLink + 226
	6   Mesghal                             0x000000010ace0d0f __71+[RNFirebaseLinks application:continueUserActivity:restorationHandler:]_block_invoke + 447
	7   libdispatch.dylib                   0x0000000113fcd2f7 _dispatch_call_block_and_release + 12
	8   libdispatch.dylib                   0x0000000113fce33d _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x0000000113fd95f9 _dispatch_main_queue_callback_4CF + 628
	10  CoreFoundation                      0x00000001130d0e39 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	11  CoreFoundation                      0x0000000113095462 __CFRunLoopRun + 2402
	12  CoreFoundation                      0x0000000113094889 CFRunLoopRunSpecific + 409
	13  GraphicsServices                    0x00000001154d29c6 GSEventRunModal + 62
	14  UIKit                               0x000000010f60b5d6 UIApplicationMain + 159
	15  Mesghal                             0x000000010a6b688f main + 111
	16  libdyld.dylib                       0x000000011404ad81 start + 1
)
@Salakar
Copy link
Member

Salakar commented Jan 17, 2018

Thanks for this, LGTM.

@Salakar Salakar merged commit 097ffbf into invertase:master Jan 17, 2018
@ardavank ardavank deleted the patch-1 branch January 28, 2018 23:41
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