diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/browser/BrowserActivity.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index e98ab43..aca7003 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -3737,11 +3737,15 @@ public class BrowserActivity extends Activity // Nothing to do. return; } + Tab t = mTabControl.getCurrentTab(); + if (t == null) { + // There is no current tab so we cannot toggle the error console + return; + } mShouldShowErrorConsole = flag; - ErrorConsoleView errorConsole = mTabControl.getCurrentTab() - .getErrorConsole(true); + ErrorConsoleView errorConsole = t.getErrorConsole(true); if (flag) { // Setting the show state of the console will cause it's the layout to be inflated. |