Bad Monkey.
Bug: 6028523
Change-Id: I960bcbb90344a4008f33551a846f2d5e8baeee22
diff --git a/src/com/android/browser/NavigationBarTablet.java b/src/com/android/browser/NavigationBarTablet.java
index 026e903..3403fd7 100644
--- a/src/com/android/browser/NavigationBarTablet.java
+++ b/src/com/android/browser/NavigationBarTablet.java
@@ -165,9 +165,9 @@
@Override
public void onClick(View v) {
- if (mBackButton == v) {
+ if ((mBackButton == v) && (mUiController.getCurrentTab() != null)) {
mUiController.getCurrentTab().goBack();
- } else if (mForwardButton == v) {
+ } else if ((mForwardButton == v) && (mUiController.getCurrentTab() != null)) {
mUiController.getCurrentTab().goForward();
} else if (mStar == v) {
Intent intent = mUiController.createBookmarkCurrentPageIntent(true);