Bug 613480 - Check for a NULL docShell in browser constructor [r=gavin a=bsmedberg]

This commit is contained in:
Mark Finkle 2010-11-22 16:37:35 -05:00
parent d04909961b
commit 717f1b7293

View File

@ -646,7 +646,8 @@
Components.classes["@mozilla.org/browser/shistory;1"]
.createInstance(Components.interfaces.nsISHistory);
// enable global history
this.docShell.QueryInterface(Components.interfaces.nsIDocShellHistory).useGlobalHistory = true;
if (this.docShell)
this.docShell.QueryInterface(Components.interfaces.nsIDocShellHistory).useGlobalHistory = true;
}
}
catch (e) {