mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Fix bug #3792 by checking for null parent (for rods).
This commit is contained in:
parent
e23982f42f
commit
1a94075ba1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user