diff options
-rw-r--r-- | src/com/android/browser/NavigationBarTablet.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/browser/NavigationBarTablet.java b/src/com/android/browser/NavigationBarTablet.java index 026e9030..3403fd7e 100644 --- a/src/com/android/browser/NavigationBarTablet.java +++ b/src/com/android/browser/NavigationBarTablet.java @@ -165,9 +165,9 @@ public class NavigationBarTablet extends NavigationBarBase { @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); |