Skip to content

Commit

Permalink
Protect IFA from nil values in MixpanelPeople
Browse files Browse the repository at this point in the history
  • Loading branch information
samgreen committed Jun 23, 2016
1 parent 649b29b commit f7a1e9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mixpanel/MixpanelPeople.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ - (NSDictionary *)collectAutomaticPeopleProperties
p[@"$ios_app_version"] = infoDictionary[@"CFBundleVersion"];
p[@"$ios_app_release"] = infoDictionary[@"CFBundleShortVersionString"];
__strong Mixpanel *strongMixpanel = self.mixpanel;
p[@"$ios_device_model"] = [strongMixpanel deviceModel];
p[@"$ios_ifa"] = [strongMixpanel IFA];
[p setValue:[strongMixpanel deviceModel] forKey:@"$ios_device_model"];
[p setValue:[strongMixpanel IFA] forKey:@"$ios_ifa"];
return [p copy];
}

Expand Down

0 comments on commit f7a1e9e

Please sign in to comment.