commit | d1e2ccc38a2d5318a4ab06b2349cb43303fd6ceb | [log] [tgz] |
---|---|---|
author | Michael Kolb <kolby@google.com> | Mon Jan 24 11:38:31 2011 -0800 |
committer | Michael Kolb <kolby@google.com> | Mon Jan 24 14:51:44 2011 -0800 |
tree | f97550b0261ce6d289d1c5d05f84c88d7470d972 | |
parent | b02aea16b9b12d39f1b34f1a94ad5564a25e2565 [diff] [blame] |
fix tab NPE http://b/issue?id=3381168 add check if tab is null when attaching a tab Change-Id: I2e53b242be829c6ed2e6eb22539eb71bee0269bf
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java index 5deb335..568a7e9 100644 --- a/src/com/android/browser/BaseUi.java +++ b/src/com/android/browser/BaseUi.java
@@ -253,7 +253,7 @@ } private void attachTabToContentView(Tab tab) { - if (tab.getWebView() == null) { + if ((tab == null) || (tab.getWebView() == null)) { return; } View container = tab.getViewContainer();