Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bf11bb9 authored by John Reck's avatar John Reck
Browse files

Add missing null check

 Bug: 13635394
 mDisplayListData can be null, make sure
 to check for that before trying to walk through the
 children list in updateProperties

Change-Id: I8d97b1656c1acf47b7c5df8a8771b0f30907261d
parent 41c2d2ce
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -99,11 +99,13 @@ void RenderNode::updateProperties() {
        mProperties = mStagingProperties;
    }

    if (mDisplayListData) {
        for (size_t i = 0; i < mDisplayListData->children.size(); i++) {
            RenderNode* childNode = mDisplayListData->children[i]->mDisplayList;
            childNode->updateProperties();
        }
    }
}

/*
 * For property operations, we pass a savecount of 0, since the operations aren't part of the