Commit 7eab1c3a authored by Saúl Ibarra Corretgé's avatar Saúl Ibarra Corretgé
Browse files

ios: fix crash if device doesn't have a name

We have observed this crash:

~~~
Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x19c404654 __exceptionPreprocess
1  libobjc.A.dylib                0x19c126bcc objc_exception_throw
2  CoreFoundation                 0x19c45a280 -[__NSCFString characterAtIndex:].cold.1
3  CoreFoundation                 0x19c4636e8 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5
4  CoreFoundation                 0x19c2f20bc -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
5  CoreFoundation                 0x19c2e40c4 +[NSDictionary dictionaryWithObjects:forKeys:count:]
6  JitsiMeet                      0x104d58d20 -[WebRTCModule(RTCMediaStream) enumerateDevices:] + 145 (WebRTCModule+RTCMediaStream.m:145)
~~~
Showing with 11 additions and 3 deletions
+11 -3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment