Bug 345342: Add nullcheck fix regression from previous checkin. r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@203432 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
380d12e8cb
commit
40b0247c88
@ -699,7 +699,8 @@ nsFind::NextNode(nsIDOMRange* aSearchRange,
|
||||
nsCOMPtr<nsIDOMNode> dnode (do_QueryInterface(content));
|
||||
printf(":::::: Got the first node "); DumpNode(dnode);
|
||||
#endif
|
||||
if (content->IsNodeOfType(nsINode::eTEXT) && !SkipNode(content))
|
||||
if (content && content->IsNodeOfType(nsINode::eTEXT) &&
|
||||
!SkipNode(content))
|
||||
{
|
||||
mIterNode = do_QueryInterface(content);
|
||||
// Also set mIterOffset if appropriate:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user