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

This commit is contained in:
jfrancis%netscape.com 2000-10-13 01:02:57 +00:00
parent 630a1fe2f3
commit 0bda8b661f
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;

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;