commit | 5fea4a202fd54c289b4316cbca9c19b256eb3cb3 | [log] [tgz] |
---|---|---|
author | Michael Kolb <kolby@google.com> | Mon May 07 10:50:50 2012 -0700 |
committer | Michael Kolb <kolby@google.com> | Mon May 07 10:50:50 2012 -0700 |
tree | b2db946d0aef4e8a031bd11d2f2c027358176cd9 | |
parent | f10b0669cc266a3670cb04e181ef6a962b2b251c [diff] |
fix monkey NPE Bug: 6445628 Change-Id: I4a4e2aa2e76596501deea5b6b6b05ea5bcda396e
diff --git a/src/com/android/browser/PieControl.java b/src/com/android/browser/PieControl.java index abe8d37..7c4291c 100644 --- a/src/com/android/browser/PieControl.java +++ b/src/com/android/browser/PieControl.java
@@ -115,7 +115,9 @@ int n = mUiController.getTabControl().getTabCount(); mTabsCount.setText(Integer.toString(n)); Tab tab = mUiController.getCurrentTab(); - mForward.setEnabled(tab.canGoForward()); + if (tab != null) { + mForward.setEnabled(tab.canGoForward()); + } return true; }