fix bug 9032, check for null crash
git-svn-id: svn://10.0.0.236/trunk@38309 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1895,6 +1895,9 @@ nsWebShellWindow::HandleUnknownContentType(nsIDocumentLoader* loader,
|
||||
//----------------------------------------
|
||||
nsCOMPtr<nsIDOMNode> nsWebShellWindow::FindNamedDOMNode(const nsString &aName, nsIDOMNode * aParent, PRInt32 & aCount, PRInt32 aEndCount)
|
||||
{
|
||||
if(!aParent)
|
||||
return nsnull;
|
||||
|
||||
nsCOMPtr<nsIDOMNode> node;
|
||||
aParent->GetFirstChild(getter_AddRefs(node));
|
||||
while (node) {
|
||||
|
||||
Reference in New Issue
Block a user