From 1fb31b67736cfca6ce49f8c49a0322825c141bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 27 Jul 2017 11:33:56 +0200 Subject: [PATCH] [iOS] Fix crash when a nil URL is loaded NSDictionary doesn't support nil values, they must be objects, so use NSNull instead, which is the kosher way to do it. --- ios/sdk/src/JitsiMeetView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/sdk/src/JitsiMeetView.m b/ios/sdk/src/JitsiMeetView.m index bccf089ed..dba6528f2 100644 --- a/ios/sdk/src/JitsiMeetView.m +++ b/ios/sdk/src/JitsiMeetView.m @@ -210,7 +210,7 @@ static NSMapTable *views; - (void)loadURLObject:(NSDictionary *)urlObject { NSDictionary *props = @{ @"externalAPIScope": externalAPIScope, - @"url": urlObject, + @"url": urlObject ?: [NSNull null], @"welcomePageEnabled": @(self.welcomePageEnabled) };