[ios] Fixes crash when vendorId is nil

This commit is contained in:
Cameron Mulhern
2016-01-15 16:14:53 -05:00
committed by Jason Wray
parent 9cd9065031
commit 07f6dee616

View File

@@ -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]],