From 5045a8fd71ac661237dc221b77f4a8da174437dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrice=20Desr=C3=A9?= Date: Mon, 24 Oct 2011 14:08:24 -0700 Subject: [PATCH] Bug 696683 - handleGeckoMessage throws java.lang.NullPointerException on startup [r=dougt] --- embedding/android/GeckoApp.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/embedding/android/GeckoApp.java b/embedding/android/GeckoApp.java index 56aa4595b2e2..eab8d129c303 100644 --- a/embedding/android/GeckoApp.java +++ b/embedding/android/GeckoApp.java @@ -479,6 +479,10 @@ abstract public class GeckoApp void handleDocumentStart(final int tabId) { Tab tab = Tabs.getInstance().getTab(tabId); + + if (tab == null) + return; + tab.setLoading(true); if (!Tabs.getInstance().isSelectedTab(tab))