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) {