Bug 349726 - fixed crash in nsHTMLCSSUtils::GetDefaultViewCSS, r=timeless, sr=neil

This commit is contained in:
wr%rosenauer.org 2006-08-24 05:09:35 +00:00
Родитель ec9fdf1d2a
Коммит c6a988ec15
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -615,9 +615,11 @@ nsHTMLCSSUtils::GetDefaultViewCSS(nsIDOMNode *aNode, nsIDOMViewCSS **aViewCSS)
// from the document, get the abtractView
res = documentView->GetDefaultView(getter_AddRefs(abstractView));
if (NS_FAILED(res)) return res;
// from the abstractView, get the CSS view
CallQueryInterface(abstractView, aViewCSS);
return NS_OK;
if (abstractView) {
// from the abstractView, get the CSS view
CallQueryInterface(abstractView, aViewCSS);
return NS_OK;
}
}
}
*aViewCSS = nsnull;