| Index: src/gpu/SkGr.cpp
|
| diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp
|
| index 18b27534bceca3550929900504004eb73d12cfb1..64142fe07e7acab7a9130fb95f36042e035b0292 100644
|
| --- a/src/gpu/SkGr.cpp
|
| +++ b/src/gpu/SkGr.cpp
|
| @@ -235,7 +235,7 @@ static GrTexture *load_yuv_texture(GrContext* ctx, bool cache, const GrTexturePa
|
| SkYUVPlanesCache::FindAndRef(pixelRef->getGenerationID(), &yuvInfo));
|
|
|
| void* planes[3];
|
| - if (cachedData->data()) {
|
| + if (cachedData && cachedData->data()) {
|
| planes[0] = (void*)cachedData->data();
|
| planes[1] = (uint8_t*)planes[0] + yuvInfo.fSizeInMemory[0];
|
| planes[2] = (uint8_t*)planes[1] + yuvInfo.fSizeInMemory[1];
|
|
|