diff --git a/ios/AutomaticProperties.swift b/ios/AutomaticProperties.swift index c49ce60e..e6889f74 100644 --- a/ios/AutomaticProperties.swift +++ b/ios/AutomaticProperties.swift @@ -5,7 +5,7 @@ class AutomaticProperties { static var peopleProperties: Dictionary = [:]; static func setAutomaticProperties(_ properties: [String: Any]) { - for (key,value) in properties { + for (key,value) in properties ?? [:] { peopleProperties[key] = MixpanelTypeHandler.mixpanelTypeValue(value) } }