am a48621be: Merge "Monkey season" into ics-mr1
* commit 'a48621be8a537284f37b843388b30017b0cfce51':
Monkey season
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index e8ae21d..52183eb 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -2221,7 +2221,10 @@
removeSubWindow(tab);
// dismiss the subwindow. This will destroy the WebView.
tab.dismissSubWindow();
- getCurrentTopWebView().requestFocus();
+ WebView wv = getCurrentTopWebView();
+ if (wv != null) {
+ wv.requestFocus();
+ }
}
@Override