commit | c5b0b2db3b917e658700642763fb50da0057716b | [log] [tgz] |
---|---|---|
author | Michael Kolb <kolby@google.com> | Tue Nov 29 16:13:35 2011 -0800 |
committer | Michael Kolb <kolby@google.com> | Tue Nov 29 16:13:35 2011 -0800 |
tree | f3dc9d7ad53d8a85a9153a9364940520d86b74e9 | |
parent | a33179189aae473eeb4d2c5d239c5a5caee66598 [diff] |
Fix yet another Monkey NPE Bug: 5685380 Change-Id: Ida841160df6e76318ebb8e2b3804a40184b96161
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java index 8dc05f8..8238d77 100644 --- a/src/com/android/browser/Controller.java +++ b/src/com/android/browser/Controller.java
@@ -1876,7 +1876,8 @@ } boolean isInLoad() { - return getCurrentTab().inPageLoad(); + final Tab tab = getCurrentTab(); + return (tab != null) && tab.inPageLoad(); } // bookmark handling