diff --git a/mozilla/xpcom/base/nsCycleCollector.cpp b/mozilla/xpcom/base/nsCycleCollector.cpp index fa73e0b22f9..ef8b74387cd 100644 --- a/mozilla/xpcom/base/nsCycleCollector.cpp +++ b/mozilla/xpcom/base/nsCycleCollector.cpp @@ -1283,6 +1283,9 @@ GCGraphBuilder::AddNode(void *s, nsCycleCollectionParticipant *aParticipant ) { PtrToNodeEntry *e = static_cast(PL_DHashTableOperate(&mPtrToNodeMap, s, PL_DHASH_ADD)); + if (!e) + return nsnull; + PtrInfo *result; if (!e->mNode) { // New entry.