Selaa lähdekoodia

[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.
master
Saúl Ibarra Corretgé 8 vuotta sitten
vanhempi
commit
1fb31b6773
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      ios/sdk/src/JitsiMeetView.m

+ 1
- 1
ios/sdk/src/JitsiMeetView.m Näytä tiedosto

@@ -210,7 +210,7 @@ static NSMapTable<NSString *, JitsiMeetView *> *views;
210 210
 - (void)loadURLObject:(NSDictionary *)urlObject {
211 211
     NSDictionary *props = @{
212 212
         @"externalAPIScope": externalAPIScope,
213
-        @"url": urlObject,
213
+        @"url": urlObject ?: [NSNull null],
214 214
         @"welcomePageEnabled": @(self.welcomePageEnabled)
215 215
     };
216 216
 

Loading…
Peruuta
Tallenna