diff --git a/mozilla/xpcom/components/nsCategoryManager.cpp b/mozilla/xpcom/components/nsCategoryManager.cpp index e2864268c8d..de75f0ad662 100644 --- a/mozilla/xpcom/components/nsCategoryManager.cpp +++ b/mozilla/xpcom/components/nsCategoryManager.cpp @@ -198,7 +198,8 @@ PLDHashOperator PR_CALLBACK EntryEnumerator::enumfunc_createenumerator(CategoryLeaf* aLeaf, void* userArg) { EntryEnumerator* mythis = NS_STATIC_CAST(EntryEnumerator*, userArg); - mythis->mArray[mythis->mCount++] = aLeaf->GetKey(); + if (aLeaf->nonpValue) + mythis->mArray[mythis->mCount++] = aLeaf->GetKey(); return PL_DHASH_NEXT; }