diff options
Diffstat (limited to 'src/com/android/browser/TabControl.java')
-rw-r--r-- | src/com/android/browser/TabControl.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java index f66df69..bdb57fa 100644 --- a/src/com/android/browser/TabControl.java +++ b/src/com/android/browser/TabControl.java @@ -712,8 +712,9 @@ class TabControl { t = mTabQueue.get(i++); } while (i < queueSize && t != null && t.mMainView == null); - // Don't do anything if the last remaining tab is the current one. - if (t == getCurrentTab()) { + // Don't do anything if the last remaining tab is the current one or if + // the last tab has been freed already. + if (t == getCurrentTab() || t.mMainView == null) { return null; } |