summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}