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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user