diff options
author | John Reck <jreck@google.com> | 2011-10-13 15:17:50 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-10-13 15:17:50 -0700 |
commit | 62077d8c4be592aa66ea270dcfc3fded6ae76034 (patch) | |
tree | 84fed2e3362a7ef0879a40ad6b69a98cd04bcd69 /src/com/android/browser/PhoneUi.java | |
parent | 132eedfc1cf97456cf03d55968bed4bc9e4eb817 (diff) | |
download | packages_apps_Browser-62077d8c4be592aa66ea270dcfc3fded6ae76034.zip packages_apps_Browser-62077d8c4be592aa66ea270dcfc3fded6ae76034.tar.gz packages_apps_Browser-62077d8c4be592aa66ea270dcfc3fded6ae76034.tar.bz2 |
Add null check
Bug: 5452795
Change-Id: I8b43875e0e72665384c974c502d8f38946f0c6f1
Diffstat (limited to 'src/com/android/browser/PhoneUi.java')
-rw-r--r-- | src/com/android/browser/PhoneUi.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java index b0f3d74..37370e5 100644 --- a/src/com/android/browser/PhoneUi.java +++ b/src/com/android/browser/PhoneUi.java @@ -521,6 +521,9 @@ public class PhoneUi extends BaseUi { } public void set(TitleBar tbar, WebView web) { + if (tbar == null || web == null) { + return; + } if (tbar.getWidth() > 0 && tbar.getEmbeddedHeight() > 0) { if (mTitleBarBitmap == null || mTitleBarBitmap.getWidth() != tbar.getWidth() |