am bb394f3e: Fix monkey crash. Check null for the top window in onActivityResult.
Merge commit 'bb394f3e134b6e5898ef7ae861b75e95e618688f' into eclair-mr2-plus-aosp
* commit 'bb394f3e134b6e5898ef7ae861b75e95e618688f':
Fix monkey crash. Check null for the top window in
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index c50c659..55e3dda 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -3322,6 +3322,8 @@
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent intent) {
+ if (getTopWindow() == null) return;
+
switch (requestCode) {
case COMBO_PAGE:
if (resultCode == RESULT_OK && intent != null) {