diff options
author | Cameron Mulhern <cameron@liveapp.com> | 2016-01-15 16:14:53 -0500 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2016-01-20 10:59:31 -0500 |
commit | 07f6dee616cda17e020b32a2f0b8caca76aa621d (patch) | |
tree | 55425ad1e8c3716875cf9b5723ab1b8c9cfb9b98 /platform | |
parent | 9cd9065031f7d2af62e437f2b32b44207484baca (diff) | |
download | qtlocation-mapboxgl-07f6dee616cda17e020b32a2f0b8caca76aa621d.tar.gz |
[ios] Fixes crash when vendorId is nil
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/src/MGLMapboxEvents.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m index 8490c03195..bde735f224 100644 --- a/platform/ios/src/MGLMapboxEvents.m +++ b/platform/ios/src/MGLMapboxEvents.m @@ -402,6 +402,9 @@ const NSTimeInterval MGLFlushInterval = 60; // Build only IDFV event NSString *vid = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; + + if (!vid) return; + NSDictionary *vevt = @{ @"event" : MGLEventTypeAppUserTurnstile, @"created" : [strongSelf.rfc3339DateFormatter stringFromDate:[NSDate date]], |