Bug 779917 - Null check followup.

This commit is contained in:
Cameron McCormack 2012-12-26 20:00:19 +11:00
parent 6183878252
commit 79279ed8b1

View File

@ -28,6 +28,10 @@ static nsresult
GetParsingInfo(nsISupports* aGlobal,
SupportsParsingInfo& aInfo)
{
if (!aGlobal) {
return NS_ERROR_FAILURE;
}
nsGlobalWindow* win = nsGlobalWindow::FromSupports(aGlobal);
nsCOMPtr<nsIDocument> doc = win->GetDoc();
if (!doc) {