Merge "fix NPE in setShouldShowErrorConsole"
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index 6e8f603..053fd7e 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -624,6 +624,7 @@
@Override
public void setShouldShowErrorConsole(Tab tab, boolean flag) {
+ if (tab == null) return;
ErrorConsoleView errorConsole = tab.getErrorConsole(true);
if (flag) {
// Setting the show state of the console will cause it's the layout