Bug 1241678 - Fix low-volume null-deref crash. r=BenWa

This commit is contained in:
Kartikaya Gupta 2016-01-22 15:28:03 -05:00
parent c5e8f53823
commit 7317978bda

View File

@ -2427,11 +2427,10 @@ CrossProcessCompositorParent::SetConfirmedTargetAPZC(const LayerTransactionParen
uint64_t id = aLayerTree->GetId();
MOZ_ASSERT(id != 0);
const CompositorParent::LayerTreeState* state = CompositorParent::GetIndirectShadowTree(id);
if (!state) {
if (!state || !state->mParent) {
return;
}
MOZ_ASSERT(state->mParent);
state->mParent->SetConfirmedTargetAPZC(aLayerTree, aInputBlockId, aTargets);
}