Bug 1104853 - Add a null check to an async IDB open operation, r=khuey.

This commit is contained in:
Ben Turner 2014-12-16 15:19:19 -08:00
parent 3837d59146
commit d4bff69580

View File

@ -11920,7 +11920,8 @@ OpenDatabaseOp::SendResults()
nsRefPtr<OpenDatabaseOp> kungFuDeathGrip;
DatabaseActorInfo* info;
if (gLiveDatabaseHashtable->Get(mDatabaseId, &info) &&
if (gLiveDatabaseHashtable &&
gLiveDatabaseHashtable->Get(mDatabaseId, &info) &&
info->mWaitingFactoryOp) {
MOZ_ASSERT(info->mWaitingFactoryOp == this);
kungFuDeathGrip =