summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/browser/PieControl.java4
1 files changed, 3 insertions, 1 deletions
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 @@ public class PieControl implements PieMenu.PieController, OnClickListener {
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;
}