summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-05-30 16:09:17 -0700
committerJohn Reck <jreck@google.com>2012-05-30 16:09:17 -0700
commitd70419abc78bbf76f21ea7e85c551d20e9fd1685 (patch)
treeb705b929af9f502f31b457f272abd77e9c05f9a2 /src
parent244cdfa6eb0745a4b681cb704f5564050d88f7ed (diff)
downloadpackages_apps_Browser-d70419abc78bbf76f21ea7e85c551d20e9fd1685.zip
packages_apps_Browser-d70419abc78bbf76f21ea7e85c551d20e9fd1685.tar.gz
packages_apps_Browser-d70419abc78bbf76f21ea7e85c551d20e9fd1685.tar.bz2
Add null check
Bug: 6584413 Change-Id: I63e94129fb0830e87d47ffca1d402a8aa838ac20
Diffstat (limited to 'src')
-rw-r--r--src/com/android/browser/TitleBar.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java
index d3e8f7c..f5be5d3 100644
--- a/src/com/android/browser/TitleBar.java
+++ b/src/com/android/browser/TitleBar.java
@@ -406,7 +406,7 @@ public class TitleBar extends RelativeLayout {
@Override
public View focusSearch(View focused, int dir) {
WebView web = getCurrentWebView();
- if (FOCUS_DOWN == dir && hasFocus()
+ if (FOCUS_DOWN == dir && hasFocus() && web != null
&& web.hasFocusable() && web.getParent() != null) {
return web;
}