Adding null ptr check to nsEventStateManager::IsFrameSetDoc() since one of the callers passes in a pointer that might be null. r=brade@netscape.com, sr=me, no bug.

This commit is contained in:
jst%netscape.com 2001-07-23 20:12:19 +00:00
parent a4906d1331
commit 514e85c664

View File

@ -4167,6 +4167,10 @@ nsEventStateManager::IsFrameSetDoc(nsIContent* aContent)
{
NS_ASSERTION(aContent, "Pointer is null!");
if (!aContent) {
return PR_FALSE;
}
nsCOMPtr<nsIDOMHTMLFrameSetElement> frameSet = do_QueryInterface(aContent);
if (frameSet) {
return PR_TRUE;