Skip to content

Commit

Permalink
Added null check for optionalSDKInitialization's success
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek committed Jan 10, 2024
1 parent 554127a commit 17a5630
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/sourcefiles/internal/config/ANSDKSettings.m
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ - (void) optionalSDKInitialization:(sdkInitCompletion _Nullable)success
[ANCarrierObserver shared];
[ANWebView prepareWebView];
#endif
success(YES);
if(success != nil){
success(YES);
}
}

-(void)setNativeAdAboutToExpireInterval:(NSInteger)nativeAdAboutToExpireInterval{
Expand Down

0 comments on commit 17a5630

Please sign in to comment.