Fix bug #3792 by checking for null parent (for rods).

This commit is contained in:
pinkerton%netscape.com 1999-03-17 17:46:14 +00:00
parent e23982f42f
commit 1a94075ba1

View File

@ -144,6 +144,11 @@ nsBaseAppCore::GetScriptContext(nsIDOMWindow * aWin)
nsCOMPtr<nsIDOMNode> nsBaseAppCore::FindNamedDOMNode(const nsString &aName, nsIDOMNode * aParent, PRInt32 & aCount, PRInt32 aEndCount)
{
nsCOMPtr<nsIDOMNode> node;
if (nsnull == aParent) {
return node;
}
aParent->GetFirstChild(getter_AddRefs(node));
while (node) {
nsString name;