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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user