diff --git a/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp b/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp index c6c0a1f6498f..7d93e98757ca 100644 --- a/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp +++ b/gfx/layers/ipc/CrossProcessCompositorBridgeParent.cpp @@ -515,11 +515,10 @@ void CrossProcessCompositorBridgeParent::FlushApzRepaints( MOZ_ASSERT(aLayersId.IsValid()); const CompositorBridgeParent::LayerTreeState* state = CompositorBridgeParent::GetIndirectShadowTree(aLayersId); - if (!state) { + if (!state || !state->mParent) { return; } - MOZ_ASSERT(state->mParent); state->mParent->FlushApzRepaints(aLayersId); }