Skip to content

Commit

Permalink
Merge pull request #726 from AWDGroup/patch-1
Browse files Browse the repository at this point in the history
Fixed: attempt to insert nil object from objects[0]
  • Loading branch information
Salakar authored Jan 17, 2018
2 parents 43070b8 + 74d614a commit 097ffbf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ios/RNFirebase/links/RNFirebaseLinks.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@


static void sendDynamicLink(NSURL *url, id sender) {
[[NSNotificationCenter defaultCenter] postNotificationName:LINKS_DYNAMIC_LINK_RECEIVED
object:sender
userInfo:@{@"url": url.absoluteString}];
NSLog(@"sendDynamicLink Success: %@", url.absoluteString);
if (url) {
[[NSNotificationCenter defaultCenter] postNotificationName:LINKS_DYNAMIC_LINK_RECEIVED
object:sender
userInfo:@{@"url": url.absoluteString}];
NSLog(@"sendDynamicLink Success: %@", url.absoluteString);
}
}

@implementation RNFirebaseLinks
Expand Down

0 comments on commit 097ffbf

Please sign in to comment.