mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 779917 - Null check followup.
This commit is contained in:
parent
6183878252
commit
79279ed8b1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user