Fix Mac startup crash: nil check for prefs.
git-svn-id: svn://10.0.0.236/trunk@40932 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -429,7 +429,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
|
||||
if(! gInitDetector)
|
||||
{
|
||||
nsIPref* pref = nsnull;
|
||||
if(NS_SUCCEEDED(webShell->GetPrefs(pref)))
|
||||
if(NS_SUCCEEDED(webShell->GetPrefs(pref)) && pref)
|
||||
{
|
||||
|
||||
char* detector_name = nsnull;
|
||||
|
||||
Reference in New Issue
Block a user