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();
|
||||
|
||||
for (size_t i = 0; i < mLayers.size(); i++) {
|
||||
mLayers[i]->apply();
|
||||
if (mLayers[i]) {
|
||||
mLayers[i]->apply();
|
||||
}
|
||||
}
|
||||
mLayers.clear();
|
||||
mContext->setContentDrawBounds(mContentDrawBounds);
|
||||
|
||||
Reference in New Issue
Block a user