Skip to content

Commit f1b712e

Browse files
author
Edward Smith
committed
Check in *all* the code.
1 parent 41a682b commit f1b712e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Branch-SDK/Branch-SDK/BNCStrongMatchHelper.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ - (BOOL) willLoadViewControllerWithURL:(NSURL*)matchURL {
236236
objc_registerClassPair(BNCMatchViewControllerSubclass);
237237
}
238238

239-
self.primaryWindow = [[UIApplication sharedApplication] keyWindow];
240239
self.matchViewController = [[BNCMatchViewControllerSubclass alloc] initWithURL:matchURL];
240+
if (!self.matchViewController) return NO;
241+
242+
self.primaryWindow = [[UIApplication sharedApplication] keyWindow];
241243
self.matchViewController.delegate = self;
242244
self.matchViewController.view.frame = self.primaryWindow.bounds;
243245

0 commit comments

Comments
 (0)