diff options
-rw-r--r-- | chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java index 23946c5..90a8075 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java @@ -385,9 +385,10 @@ public class TabWebContentsDelegateAndroid extends WebContentsDelegateAndroid { // because it will change the tab when the intent is handled, which happens after // Chrome gets back to the foreground. Intent newIntent = Tab.createBringTabToFrontIntent(mTab.getId()); - newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - - mTab.getApplicationContext().startActivity(newIntent); + if (newIntent != null) { + newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + mTab.getApplicationContext().startActivity(newIntent); + } } @Override |