Bug 1140065 Check for null actor before using it in CacheStorageChild::RecvOpenResponse(). r=ehsan

This commit is contained in:
Ben Kelly 2015-03-05 16:31:21 -08:00
parent 9a8cf9a686
commit f8c56f6d37

View File

@ -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;