Check for a null aNode in nsTypedSelection::ContainsNode and return immediately. bug=347036 r=brettw sr=bryner

git-svn-id: svn://10.0.0.236/trunk@206507 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
uriber%gmail.com
2006-08-03 19:22:50 +00:00
parent 6dba7a25c1
commit 88493c286c

View File

@@ -6705,7 +6705,7 @@ nsTypedSelection::ContainsNode(nsIDOMNode* aNode, PRBool aAllowPartial,
NS_ASSERTION(ValidateRanges(), "Ranges out of sync");
*aYes = PR_FALSE;
if (mRanges.Length() == 0)
if (mRanges.Length() == 0 || !aNode)
return NS_OK;
PRUint16 nodeType;