summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-08-12 13:36:07 -0700
committerMichael Kolb <kolby@google.com>2011-08-12 13:36:07 -0700
commitace2ff88b860c60c634d6cd49177eb4c5413228b (patch)
tree7fd1427a047b7b4ce6fa4e127d5c7fda36496a02
parent58891907e3cf77b72f1107ef5d9f4c984cb176ed (diff)
downloadpackages_apps_Browser-ace2ff88b860c60c634d6cd49177eb4c5413228b.zip
packages_apps_Browser-ace2ff88b860c60c634d6cd49177eb4c5413228b.tar.gz
packages_apps_Browser-ace2ff88b860c60c634d6cd49177eb4c5413228b.tar.bz2
Add monkey protection to editUrl
Bug: 5145898 check for valid active tab Change-Id: I32da53b71771b0f81af44fbbc317d6c891741098
-rw-r--r--src/com/android/browser/BaseUi.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index 368021a..c1f8bfb 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -426,7 +426,7 @@ public abstract class BaseUi implements UI, OnTouchListener {
mUiController.endActionMode();
}
showTitleBar();
- if (!getActiveTab().isSnapshot()) {
+ if ((getActiveTab() != null) && !getActiveTab().isSnapshot()) {
mNavigationBar.startEditingUrl(clearInput);
}
}