Checkin for timeless@bemail.org to fix bug 128223: don't assert if a child
datasource doesn't return an (empty) enumerator along with NS_RDF_NO_VALUE. r=tingley, sr=darin, a=shaver git-svn-id: svn://10.0.0.236/trunk@115552 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5fd1019b70
commit
8fa9272d6f
@ -238,6 +238,8 @@ CompositeEnumeratorImpl::HasMoreElements(PRBool* aResult)
|
||||
|
||||
rv = GetEnumerator(datasource, &mCurrent);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (rv == NS_RDF_NO_VALUE)
|
||||
continue;
|
||||
|
||||
NS_ASSERTION(mCurrent != nsnull, "you're always supposed to return an enumerator from GetEnumerator, punk.");
|
||||
if (! mCurrent)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user