Skip to content

Commit

Permalink
fix(dynamic-links, android): check for null currentIntent in getIniti…
Browse files Browse the repository at this point in the history
…alLink to avoid crash (#5662)
  • Loading branch information
daltonpurnell authored Aug 31, 2021
1 parent 41c0107 commit 415c200
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ public void getInitialLink(Promise promise) {
}

Intent currentIntent = currentActivity.getIntent();
if (currentIntent == null) {
promise.resolve(null);
return;
}

// Verify if the app was resumed from the Overview (history) screen.
launchedFromHistory =
(currentIntent != null)
Expand Down

1 comment on commit 415c200

@vercel
Copy link

@vercel vercel bot commented on 415c200 Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.