commit | e8c975772600287793549407927281131757868c | [log] [tgz] |
---|---|---|
author | Michael Kolb <kolby@google.com> | Mon Nov 21 14:03:56 2011 -0800 |
committer | Michael Kolb <kolby@google.com> | Mon Nov 21 14:03:56 2011 -0800 |
tree | 5813acaf56faf1128db5b63fefbc7545db14d25b | |
parent | 2edc80c2ccca9030f8013328cc2e37bc374d3d92 [diff] [blame] |
Monkey season Bug: 5650555 Change-Id: Ia5ea323b3abaf411c24af18193d5d9ac7f63e212
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 2a57edf..e701316 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java
@@ -2223,7 +2223,10 @@ removeSubWindow(tab); // dismiss the subwindow. This will destroy the WebView. tab.dismissSubWindow(); - getCurrentTopWebView().requestFocus(); + WebView wv = getCurrentTopWebView(); + if (wv != null) { + wv.requestFocus(); + } } @Override