Bug 164928. Crash in type ahead find. Patch by Akkana. r=aaronl, sr=bz

git-svn-id: svn://10.0.0.236/trunk@128521 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronl%netscape.com
2002-08-30 03:31:48 +00:00
parent 28789717eb
commit 5aac1b09ba

View File

@@ -1161,6 +1161,10 @@ nsTypeAheadFind::RangeStartsInsideLink(nsIDOMRange *aRange,
PRBool canContainChildren;
startContent = do_QueryInterface(startNode);
if (!startContent) {
NS_NOTREACHED("startContent should never be null");
return;
}
origContent = startContent;
if (NS_SUCCEEDED(startContent->CanContainChildren(canContainChildren)) &&