commit | bb394f3e134b6e5898ef7ae861b75e95e618688f | [log] [tgz] |
---|---|---|
author | Grace Kloba <klobag@google.com> | Thu Nov 19 10:26:37 2009 -0800 |
committer | Grace Kloba <klobag@google.com> | Thu Nov 19 10:32:53 2009 -0800 |
tree | 6846a9b4692dfcf8ba9b9c13c826fa29aecb39a0 | |
parent | 90d088caeee718f89755ee9c25249ba6da15ab97 [diff] [blame] |
Fix monkey crash. Check null for the top window in onActivityResult. Fix http://b/issue?id=2254462
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) {