From 627d96f1564e9f95d8258958b35467057ff4c6b8 Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Wed, 18 Aug 2010 16:35:30 -0700 Subject: Fix Browser crash on search in new Browser session. Change-Id: I7e96b062223c8ed2a15610dd52fa3b65656710d6 --- src/com/android/browser/BrowserActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 4461cf0..50f4189 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -638,7 +638,7 @@ public class BrowserActivity extends Activity final ContentResolver cr = mResolver; final String newUrl = url; - if (!mTabControl.getCurrentWebView().isPrivateBrowsingEnabled()) { + if (mTabControl == null || !mTabControl.getCurrentWebView().isPrivateBrowsingEnabled()) { new AsyncTask() { @Override protected Void doInBackground(Void... unused) { -- cgit v1.1