Bug 696683 - handleGeckoMessage throws java.lang.NullPointerException on startup [r=dougt]
authorFabrice Desré <fabrice@mozilla.com>
Mon, 24 Oct 2011 14:08:24 -0700
changeset 83233 1d37f263df5f4fa971983f47c60b10ec10783ee8
parent 83232 04a7317963b91d1efbfbd93997fc40d5ad9af001
child 83234 d0de6c7720d24ce4fd8714c705ff4cd7dc8a4c04
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdougt
bugs696683
milestone10.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 696683 - handleGeckoMessage throws java.lang.NullPointerException on startup [r=dougt]
embedding/android/GeckoApp.java
--- a/embedding/android/GeckoApp.java
+++ b/embedding/android/GeckoApp.java
@@ -474,16 +474,20 @@ abstract public class GeckoApp
                 mBrowserToolbar.setTitle(uri);
                 mBrowserToolbar.setFavicon(null);
             }
         });
     }
 
     void handleDocumentStart(final int tabId) {
         Tab tab = Tabs.getInstance().getTab(tabId);
+
+        if (tab == null)
+            return;
+
         tab.setLoading(true);
         
         if (!Tabs.getInstance().isSelectedTab(tab))
             return;
 
         mMainHandler.post(new Runnable() { 
             public void run() {
                 mBrowserToolbar.setProgressVisibility(true);