Bug 347804 r=bryner a=dbaron Crash [@ FindNextNode] with evil testcase in spell checker code

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@206981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brettw%gmail.com
2006-08-09 16:45:17 +00:00
parent 3006e0e402
commit 755bcec0db

View File

@@ -162,7 +162,7 @@ FindNextNode(nsIDOMNode* aNode, nsIDOMNode* aRoot,
}
aNode->GetParentNode(getter_AddRefs(next));
if (next == aRoot)
if (next == aRoot || ! next)
return nsnull;
aNode = next;