Skip to content

Commit

Permalink
[Herb] Check if Tab is destroyed before getting its URL
Browse files Browse the repository at this point in the history
This isn't a real fix for Dill, but it stops the crash.

BUG=591213
TBR=ianwen

Review URL: https://codereview.chromium.org/1763463002

(cherry picked from commit 579efe8)

Cr-Original-Commit-Position: refs/heads/master@{#378875}
Cr-Commit-Position: refs/branch-heads/2661@{crosswalk-project#49}
Cr-Branched-From: ef6f6ae-refs/heads/master@{#378081}
  • Loading branch information
Alex Mineer committed Mar 2, 2016
1 parent 222ed74 commit ca5a6e0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ public void run() {
* Lets the original Activity know how this {@link CustomTabActivity} was finished.
*/
private void createHerbResultIntent(int result) {
if (getActivityTab() == null) return;
Intent resultIntent = new Intent();

switch (result) {
Expand Down

0 comments on commit ca5a6e0

Please sign in to comment.