Bug 347804 r=bryner Crash due to not NULL checking

git-svn-id: svn://10.0.0.236/trunk@206885 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brettw%gmail.com 2006-08-08 17:12:19 +00:00
parent 2fb6625e21
commit d178fffe45

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;