summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2010-09-27 10:39:16 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-27 10:39:16 -0700
commitda9f155662e8ea94bdda16e33b660769669148a7 (patch)
treec649c4e0fffd15082fb8ec8da7842a47a33185fb /src
parentf4ccbc5d46f43dc18e3b87cb3348a634e003630f (diff)
parentcc14c8c4da26ff93a96078c7c9108682c23bd1af (diff)
downloadpackages_apps_Browser-da9f155662e8ea94bdda16e33b660769669148a7.zip
packages_apps_Browser-da9f155662e8ea94bdda16e33b660769669148a7.tar.gz
packages_apps_Browser-da9f155662e8ea94bdda16e33b660769669148a7.tar.bz2
am cc14c8c4: Prevent a null pointer exception.
Merge commit 'cc14c8c4da26ff93a96078c7c9108682c23bd1af' into gingerbread-plus-aosp * commit 'cc14c8c4da26ff93a96078c7c9108682c23bd1af': Prevent a null pointer exception.
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/BrowserActivity.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 098e3b2..72ed2ec 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -191,6 +191,9 @@ public class BrowserActivity extends Activity
mResolver = getContentResolver();
+ // Keep a settings instance handy.
+ mSettings = BrowserSettings.getInstance();
+
// If this was a web search request, pass it on to the default web
// search provider and finish this activity.
if (handleWebSearchIntent(getIntent())) {
@@ -225,8 +228,6 @@ public class BrowserActivity extends Activity
// Open the icon database and retain all the bookmark urls for favicons
retainIconsOnStartup();
- // Keep a settings instance handy.
- mSettings = BrowserSettings.getInstance();
mSettings.setTabControl(mTabControl);
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);