b=95339 Check the aPrintOptions for null. Fixes embedding silent. r=rods sr=attinasi

git-svn-id: svn://10.0.0.236/trunk@101212 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dcone%netscape.com
2001-08-16 13:58:38 +00:00
parent e38888b55d
commit cd5bb0fac0

View File

@@ -1589,7 +1589,9 @@ NS_IMETHODIMP nsWebBrowser::Print(nsIDOMWindow *aDOMWindow,
nsresult rv = NS_OK;
nsCOMPtr<nsIDOMWindow> thisDOMWin;
PRBool silent = PR_FALSE;
aThePrintOptions->GetPrintSilent (&silent);
if( aThePrintOptions != nsnull){
aThePrintOptions->GetPrintSilent (&silent);
}
// XXX this next line may need to be changed