Bug 333387: crash [@ ns4xPluginInstance::Print], patch by Ryan Jones <sciguyryan+bugzilla@gmail.com>, r+sr=jst

This commit is contained in:
gavin%gavinsharp.com 2006-11-06 14:51:52 +00:00
parent 549aada68f
commit 7d6325aee3

View File

@ -1378,9 +1378,11 @@ NS_IMETHODIMP ns4xPluginInstance::Print(nsPluginPrint* platformPrint)
}
}
NS_TRY_SAFE_CALL_VOID(CallNPP_PrintProc(fCallbacks->print,
&fNPP,
thePrint), fLibrary, this);
if(fCallbacks->print) {
NS_TRY_SAFE_CALL_VOID(CallNPP_PrintProc(fCallbacks->print,
&fNPP,
thePrint), fLibrary, this);
}
NPP_PLUGIN_LOG(PLUGIN_LOG_NORMAL,
("NPP PrintProc called: this=%p, pDC=%p, [x=%d,y=%d,w=%d,h=%d], clip[t=%d,b=%d,l=%d,r=%d]\n",