Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 0648aea

Browse files
authored
fixing dynamicLink crash
fixing crash if firebase returns a null dynamic link in its completion handler
1 parent 6fe0862 commit 0648aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firebase.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ firebase.addAppDelegateMethods = appDelegate => {
198198

199199
} else {
200200
result = FIRDynamicLinks.dynamicLinks().handleUniversalLinkCompletion(userActivity.webpageURL, (dynamicLink, error) => {
201-
if (dynamicLink.url !== null) {
201+
if (dynamicLink !== null && dynamicLink.url !== null) {
202202
if (firebase._dynamicLinkCallback) {
203203
firebase._dynamicLinkCallback({
204204
url: dynamicLink.url.absoluteString,

0 commit comments

Comments
 (0)