зеркало из https://github.com/mozilla/pjs.git
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
This commit is contained in:
Родитель
e64a6d4e8f
Коммит
fb175349d4
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче