Skip to content

Commit 6d37bcb

Browse files
Merge pull request #183 from mixpanel/jared-handle-nil-super-props
safer handling of nil superProperties
2 parents 472c2ae + fa1bbaf commit 6d37bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/AutomaticProperties.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class AutomaticProperties {
55
static var peopleProperties: Dictionary<String, MixpanelType> = [:];
66

77
static func setAutomaticProperties(_ properties: [String: Any]) {
8-
for (key,value) in properties {
8+
for (key,value) in properties ?? [:] {
99
peopleProperties[key] = MixpanelTypeHandler.mixpanelTypeValue(value)
1010
}
1111
}

0 commit comments

Comments
 (0)