Skip to content

Commit

Permalink
Bug 1140065 Check for null actor before using it in CacheStorageChild…
Browse files Browse the repository at this point in the history
…::RecvOpenResponse().
  • Loading branch information
rmottola committed Jun 29, 2019
1 parent e408a58 commit 3a5875d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dom/cache/CacheStorageChild.cpp
Expand Up @@ -137,7 +137,9 @@ CacheStorageChild::RecvOpenResponse(const RequestId& aRequestId,
// the feature won't try to shutdown the actor until after we create the
// Cache DOM object in the listener's RecvOpenResponse() method. This
// is important because StartShutdown() expects a Cache object listener.
cacheChild->SetFeature(GetFeature());
if (cacheChild) {
cacheChild->SetFeature(GetFeature());
}

listener->RecvOpenResponse(aRequestId, aRv, cacheChild);
return true;
Expand Down

0 comments on commit 3a5875d

Please sign in to comment.