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

Commit 913cc9a6 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 am: ed06ccd4 am: d28b7331

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


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