twilio/conversations-ios

[Crash] NSInvalidArgumentException: *** -[__NSDictionaryM setObject:forKeyedSubscript:]: key cannot be nil

AkshayAShah opened this issue · 4 comments

Hello, We are getting crashes in Production ENV with the following stack trace.

NSInvalidArgumentException: *** -[__NSDictionaryM setObject:forKeyedSubscript:]: key cannot be nil

0  CoreFoundation            ___exceptionPreprocess
1  libobjc.A.dylib           _objc_exception_throw
2  CoreFoundation            __CFThrowFormattedException
3  CoreFoundation            -[__NSDictionaryM setObject:forKeyedSubscript:].cold.1
4  CoreFoundation            -[__NSDictionaryM setObject:forKeyedSubscript:]
5  TwilioConversationsClient -[TCHConversations conversationWrapperForInternalConversation:] (TCHConversations.mm:68:13)
6  TwilioConversationsClient -[TCHConversations listOfConversationsFromInternalList:] (TCHConversations.mm:89:41)
7  TwilioConversationsClient -[TCHConversations myConversations] (TCHConversations.mm:80:12)
8  TwilioConversationsClient -[TwilioConversationsClient onUserSubscribed:] (TCHConversationsClient.mm:1681:51)
9  TwilioConversationsClient ___ZN33TwilioConversationsClientListener16onUserSubscribedENSt3__110shared_ptrIN3rtd7ITMUserEEE_block_invoke (TwilioConversationsClientListener.mm:355:13)
10 libdispatch.dylib         __dispatch_call_block_and_release
11 libdispatch.dylib         __dispatch_client_callout
12 libdispatch.dylib         __dispatch_root_queue_drain
13 libdispatch.dylib         __dispatch_worker_thread2
14 libsystem_pthread.dylib   __pthread_wqthread
15 libsystem_pthread.dylib   _start_wqthread

I believe this one was fixed recently, @Gray-Wind to double check.

The fix of this issue will be included in the next release.

@Gray-Wind When is next release going to be published?

The release with the fix has been published.