Merge "Fix null deref crash" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-05-24 00:41:17 +00:00
committed by Android (Google) Code Review

View File

@@ -123,7 +123,7 @@ void RenderState::flush(Caches::FlushMode mode) {
}
void RenderState::onBitmapDestroyed(uint32_t pixelRefId) {
if (mCaches->textureCache.destroyTexture(pixelRefId)) {
if (mCaches && mCaches->textureCache.destroyTexture(pixelRefId)) {
glFlush();
GL_CHECKPOINT(MODERATE);
}