Merge "Add null pointer check to avoid system crash."
This commit is contained in:
@@ -243,7 +243,9 @@ 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++) {
|
||||||
mLayers[i]->apply();
|
if (mLayers[i]) {
|
||||||
|
mLayers[i]->apply();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mLayers.clear();
|
mLayers.clear();
|
||||||
mContext->setContentDrawBounds(mContentDrawBounds);
|
mContext->setContentDrawBounds(mContentDrawBounds);
|
||||||
|
|||||||
Reference in New Issue
Block a user