Skip to content

Commit

Permalink
Fixed empty dictionary case.
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiDixit09 committed Sep 5, 2024
1 parent ffe4bd2 commit eef100d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BranchSDK/Branch.m
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ - (void)initSessionWithLaunchOptions:(NSDictionary *)options isReferrable:(BOOL)

- (void)initSceneSessionWithLaunchOptions:(NSDictionary *)options isReferrable:(BOOL)isReferrable explicitlyRequestedReferrable:(BOOL)explicitlyRequestedReferrable automaticallyDisplayController:(BOOL)automaticallyDisplayController
registerDeepLinkHandler:(void (^)(BNCInitSessionResponse * _Nullable initResponse, NSError * _Nullable error))callback {
NSMutableDictionary * optionsWithDeferredInit = [options mutableCopy] ;
NSMutableDictionary * optionsWithDeferredInit = [[NSMutableDictionary alloc ] initWithDictionary:options];
if (self.deferInitForPluginRuntime) {
[optionsWithDeferredInit setObject:@1 forKey:@"BRANCH_DEFER_INIT_FOR_PLUGIN_RUNTIME_KEY"];
} else {
Expand Down

0 comments on commit eef100d

Please sign in to comment.