From d2bc7087d1e2474124b286ed9047792a0cadce76 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Mon, 4 Jan 2016 12:34:03 +0530 Subject: 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 --- src/com/android/browser/Tab.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.1