Bug 1007604 - add additional null check; r=sicking

--HG--
extra : rebase_source : 6ea67b48610f7b56e1ab3e33a3a4a42bb33329f4
This commit is contained in:
Arpad Borsos 2014-05-10 00:53:41 +02:00
parent e1c350091f
commit 1bd84b4429

View File

@ -1093,6 +1093,10 @@ nsViewManager::CallWillPaintOnObservers()
{
NS_PRECONDITION(IsRootVM(), "Must be root VM for this to be called!");
if (NS_WARN_IF(!gViewManagers)) {
return;
}
uint32_t index;
for (index = 0; index < gViewManagers->Length(); index++) {
nsViewManager* vm = gViewManagers->ElementAt(index);