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

Commit a04929ef authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add null pointer check to avoid system crash."

parents d850a82b 10f88675
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);