mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 06:10:35 +00:00
trunk checkin of: fix for rtm++ dogfood+ 55748; r=sfraser; sr=kin
This commit is contained in:
parent
630a1fe2f3
commit
0bda8b661f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user