NSInvalidArgumentException *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]

We are getting lot of crashes in our game but not able to reproduce please help us if anyone have any solutions

Reporter: Firebase crashlytics

Stack trace:
Code Block
0 CoreFoundation __exceptionPreprocess
1 libobjc.A.dylib objc_exception_throw
2 CoreFoundation -[__NSCFString characterAtIndex:].cold.1
3 CoreFoundation -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5
4 CoreFoundation -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
5 CoreFoundation +[NSDictionary dictionaryWithObjects:forKeys:count:]
6 __APP_NAME__ -[ISAppStoreInsideSession productViewControllerDidFinish:]
7 StoreKit -[SKStoreProductViewController _didFinish]
8 StoreKit -[SKRemoteProductViewController didFinish]
9 CoreFoundation __invoking___
10 CoreFoundation -[NSInvocation invoke]
11 libdispatch.dylib _dispatch_client_callout
12 libdispatch.dylib _dispatch_block_invoke_direct$VARIANT$mp
13 FrontBoardServices __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
14 FrontBoardServices -[FBSSerialQueue _targetQueue_performNextIfPossible]
15 FrontBoardServices -[FBSSerialQueue _performNextFromRunLoopSource]
16 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
17 CoreFoundation __CFRunLoopDoSource0
18 CoreFoundation __CFRunLoopDoSources0
19 CoreFoundation __CFRunLoopRun
20 CoreFoundation CFRunLoopRunSpecific
21 GraphicsServices GSEventRunModal
22 UIKitCore -[UIApplication _run]
23 UIKitCore UIApplicationMain
24 __APP_NAME__ main.m - Line 8 main + 8
25 libdyld.dylib start


[ISAppStoreInsideSession productViewControllerDidFinish:]

this is highlighted in crashlytics stack trace and from here onwards it crashing.


NSInvalidArgumentException *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]
 
 
Q