mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00
Fix this to be a real null check. No bug, r+sr=bzbarsky
This commit is contained in:
parent
af7ec736be
commit
060a3a1e2b
@ -682,7 +682,7 @@ nsWindowWatcher::OpenWindowJSInternal(nsIDOMWindow *aParent,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aDialog && argv > 0) {
|
if (aDialog && argv) {
|
||||||
// Set the args on the new object.
|
// Set the args on the new object.
|
||||||
nsCOMPtr<nsIScriptGlobalObject> scriptGlobal(do_QueryInterface(*_retval));
|
nsCOMPtr<nsIScriptGlobalObject> scriptGlobal(do_QueryInterface(*_retval));
|
||||||
NS_ENSURE_TRUE(scriptGlobal, NS_ERROR_UNEXPECTED);
|
NS_ENSURE_TRUE(scriptGlobal, NS_ERROR_UNEXPECTED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user