mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
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:
parent
a4906d1331
commit
514e85c664
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user