trunk checkin of: fix for rtm++ dogfood+ 55748; r=sfraser; sr=kin

git-svn-id: svn://10.0.0.236/trunk@81088 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com
2000-10-13 01:02:57 +00:00
parent b538c9bc2e
commit 4d276fe807
2 changed files with 2 additions and 2 deletions

View File

@@ -896,7 +896,7 @@ nsresult nsContentSubtreeIterator::Init(nsIDOMRange* aRange)
if (!firstCandidate)
{
// then firstCandidate is next node after cN
if (NS_FAILED(GetNextSibling(cN, &firstCandidate)))
if (NS_FAILED(GetNextSibling(cN, &firstCandidate)) || !firstCandidate)
{
MakeEmpty();
return NS_OK;