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:
parent
2fb6625e21
commit
d178fffe45
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user