commit | bb85b9016201d45ea939d7cb7edd0ba6616a111c | [log] [tgz] |
---|---|---|
author | Leon Scroggins <scroggo@google.com> | Mon Sep 14 19:27:20 2009 -0400 |
committer | Leon Scroggins <scroggo@google.com> | Mon Sep 14 19:27:20 2009 -0400 |
tree | 4404a825e057ddbb9d84e4ac8347a1ab2daeafd5 | |
parent | b40bf27e35243d85b616908acd641a223807d137 [diff] |
Fix a potential null pointer exception. Fixes http://b/issue?id=2075672 Change-Id: I8e1d052bb8316452405e8364e69d7092fefa4e10
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 66a0d43..31675db 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java
@@ -1808,7 +1808,9 @@ } WebView view = t.getWebView(); - view.setEmbeddedTitleBar(null); + if (view != null) { + view.setEmbeddedTitleBar(null); + } // Remove the sub window if it exists. if (t.getSubWebView() != null) {