Fix null pointer dereference causing startup crash.

This commit is contained in:
Ali Juma 2012-02-06 09:42:53 -05:00
parent 035ebbe87f
commit eb26c9ae11

View File

@ -259,6 +259,9 @@ CompositorParent::AsyncRender()
} }
Layer* root = mLayerManager->GetRoot(); Layer* root = mLayerManager->GetRoot();
if (!root) {
return;
}
/* /*
ContainerLayer* container = root->AsContainerLayer(); ContainerLayer* container = root->AsContainerLayer();