summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUmair Khan <omerjerk@gmail.com>2016-01-04 12:34:03 +0530
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-01-04 10:32:40 -0800
commitd2bc7087d1e2474124b286ed9047792a0cadce76 (patch)
tree59b18965854c43d7cca16352dd76b710a2adf851 /src
parent852bcd16b075d74f3c24373d8321f9b193200c2e (diff)
downloadpackages_apps_Browser-d2bc7087d1e2474124b286ed9047792a0cadce76.zip
packages_apps_Browser-d2bc7087d1e2474124b286ed9047792a0cadce76.tar.gz
packages_apps_Browser-d2bc7087d1e2474124b286ed9047792a0cadce76.tar.bz2
Browser: Fix crash while loading a page
view.getUrl() returns null sometimes while performing the redirection. syncCurrentState() already handles this case. Change-Id: I874a0260153441df76834fbb0bcba7bb122c2b95 Signed-off-by: Umair Khan <omerjerk@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/Tab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index df4bc52..c99e9b2 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -399,7 +399,7 @@ class Tab implements PictureListener {
syncCurrentState(view, url);
mWebViewController.onPageFinished(Tab.this);
- if (view.getUrl().equals(HomeProvider.MOST_VISITED_URL)) {
+ if (mCurrentState.mUrl.equals(HomeProvider.MOST_VISITED_URL)) {
if (!mInMostVisitedPage) {
loadUrl(HomeProvider.MOST_VISITED, null);
mInMostVisitedPage = true;