commit 4eb56ec0936e03dcc5d7e83322961c986065dc5d Author: sisbell shane.isbell@gmail.com Date: Wed Nov 27 21:08:02 2019 -0800
Bug #32405: Crash immediately after bootstrap on Android --- mobile/android/base/java/org/mozilla/gecko/BrowserApp.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java index 36f0b0dbb66c..38dac85ef3bc 100644 --- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java +++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java @@ -3032,7 +3032,10 @@ public class BrowserApp extends GeckoApp // When the content loaded in the background (such as about:tor), // it was loaded while mBrowserChrome was GONE. We should refresh the // height now so the page is rendered correctly. - Tabs.getInstance().getSelectedTab().doReload(true); + final Tab currentTab = Tabs.getInstance().getSelectedTab(); + if (currentTab != null) { + currentTab.doReload(true); + }
// If we finished, then Tor bootstrapped 100% mTorNeedsStart = false;
tbb-commits@lists.torproject.org