Fix this to be a real null check. No bug, r+sr=bzbarsky

This commit is contained in:
mrbkap%gmail.com 2006-06-14 22:25:12 +00:00
parent af7ec736be
commit 060a3a1e2b

View File

@ -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);