diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/browser/Controller.java | 5 |
1 files changed, 4 insertions, 1 deletions
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 @@ public class Controller removeSubWindow(tab); // dismiss the subwindow. This will destroy the WebView. tab.dismissSubWindow(); - getCurrentTopWebView().requestFocus(); + WebView wv = getCurrentTopWebView(); + if (wv != null) { + wv.requestFocus(); + } } @Override |