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

Commit ed06ccd4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add null pointer check to avoid system crash." am: a04929ef

parents 2f941f7a a04929ef
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -243,8 +243,10 @@ bool DrawFrameTask::syncFrameState(TreeInfo& info) {
    mContext->unpinImages();

    for (size_t i = 0; i < mLayers.size(); i++) {
        if (mLayers[i]) {
            mLayers[i]->apply();
        }
    }
    mLayers.clear();
    mContext->setContentDrawBounds(mContentDrawBounds);
    mContext->prepareTree(info, mFrameInfo, mSyncQueued, mTargetNode);