commit | 62077d8c4be592aa66ea270dcfc3fded6ae76034 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Thu Oct 13 15:17:50 2011 -0700 |
committer | John Reck <jreck@google.com> | Thu Oct 13 15:17:50 2011 -0700 |
tree | 84fed2e3362a7ef0879a40ad6b69a98cd04bcd69 | |
parent | 132eedfc1cf97456cf03d55968bed4bc9e4eb817 [diff] [blame] |
Add null check Bug: 5452795 Change-Id: I8b43875e0e72665384c974c502d8f38946f0c6f1
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 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()