File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 3636
3737static NSString *const errorResponseKey = @" error_msg" ;
3838
39- static NSString *const invalidMarketingCloudId = @" <null>" ;
40-
4139static NSString *const errorDomain = @" mParticle-Adobe" ;
4240static NSString *const serverErrorDomain = @" mParticle-Adobe Server Response" ;
4341
@@ -172,13 +170,9 @@ - (void)sendRequestWithMarketingCloudId:(NSString *)marketingCloudId advertiserI
172170 return callbackWithCode (MPIAdobeErrorCodeServerError, @" Server returned an error" , error);
173171 }
174172
175- NSString *marketingCloudId = dictionary[marketingCloudIdKey];
176- if ([marketingCloudId isEqualToString: invalidMarketingCloudId]) {
177- marketingCloudId = nil ;
178- }
179-
180- NSString *region = [NSString stringWithFormat: @" %@ " , dictionary[regionKey]];
181- NSString *blob = dictionary[blobKey];
173+ NSString *marketingCloudId = [dictionary[marketingCloudIdKey] isKindOfClass: [NSString class ]] ? dictionary[marketingCloudIdKey] : nil ;
174+ NSString *region = [dictionary[regionKey] isKindOfClass: [NSString class ]] ? dictionary[regionKey] : nil ;
175+ NSString *blob = [dictionary[blobKey] isKindOfClass: [NSString class ]] ? dictionary[blobKey] : nil ;
182176
183177 weakSelf.region = region;
184178 weakSelf.blob = blob;
You can’t perform that action at this time.
0 commit comments