File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
GoogleDataTransportCCTSupport Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 2
2
- Updates GDT dependency to improve backgrounding logic.
3
3
- Reduces requests for background task creation. (#3893 )
4
4
- Fix unbalanced background task creation in GDTCCTUploader. (#3838 )
5
+ - Fixes a nil argument being passed to GDTCCTEncodeString. (#3893 )
5
6
6
7
# v1.1.0
7
8
- Updates GDT dependency to GDTCOR prefixed version.
Original file line number Diff line number Diff line change @@ -162,7 +162,10 @@ gdt_cct_IosClientInfo GDTCCTConstructiOSClientInfo() {
162
162
if (version) {
163
163
iOSClientInfo.application_build = GDTCCTEncodeString (version);
164
164
}
165
- iOSClientInfo.country = GDTCCTEncodeString ([locale objectForKey: NSLocaleCountryCode ]);
165
+ NSString *countryCode = [locale objectForKey: NSLocaleCountryCode ];
166
+ if (countryCode) {
167
+ iOSClientInfo.country = GDTCCTEncodeString ([locale objectForKey: NSLocaleCountryCode ]);
168
+ }
166
169
iOSClientInfo.model = GDTCCTEncodeString (device.model );
167
170
NSString *languageCode = bundle.preferredLocalizations .firstObject ;
168
171
iOSClientInfo.language_code =
You can’t perform that action at this time.
0 commit comments