зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1317198 - Check if a tab is null before trying to get its id in GeckoApp.onPause() r=sebastian
This commit is contained in:
Родитель
eb88ca57ad
Коммит
8c9aab66e3
|
@ -2156,7 +2156,10 @@ public abstract class GeckoApp
|
|||
return;
|
||||
}
|
||||
|
||||
lastSelectedTabId = Tabs.getInstance().getSelectedTab().getId();
|
||||
final Tab selectedTab = Tabs.getInstance().getSelectedTab();
|
||||
if (selectedTab != null) {
|
||||
lastSelectedTabId = selectedTab.getId();
|
||||
}
|
||||
lastActiveGeckoApp = new WeakReference<GeckoApp>(this);
|
||||
|
||||
final HealthRecorder rec = mHealthRecorder;
|
||||
|
|
Загрузка…
Ссылка в новой задаче