Skip to content

Commit 6090f9a

Browse files
authored
Merge pull request #391 from BranchMetrics/stop-the-null-madness
Don't return nil params on error
2 parents 8e1d8d9 + fee0634 commit 6090f9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,10 +1258,10 @@ - (void)handleInitFailure:(NSError *)error {
12581258

12591259
if (self.shouldCallSessionInitCallback) {
12601260
if (self.sessionInitWithParamsCallback) {
1261-
self.sessionInitWithParamsCallback(nil, error);
1261+
self.sessionInitWithParamsCallback([[NSDictionary alloc] init], error);
12621262
}
12631263
else if (self.sessionInitWithBranchUniversalObjectCallback) {
1264-
self.sessionInitWithBranchUniversalObjectCallback(nil, nil, error);
1264+
self.sessionInitWithBranchUniversalObjectCallback([[BranchUniversalObject alloc] init], [[BranchLinkProperties alloc] init], error);
12651265
}
12661266
}
12671267
}

0 commit comments

Comments
 (0)