From: Eunki, Hong Date: Mon, 10 Jan 2022 09:18:45 +0000 (+0900) Subject: [Tizen] Fix nullptr issue when we use fixed image cache X-Git-Tag: accepted/tizen/6.5/unified/20220113.123426^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d650abb1b4ee51b8a61e287f9b11a24e2e3c412b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git [Tizen] Fix nullptr issue when we use fixed image cache Change-Id: I717ce37a32cd262dd3ce4f26f4a05639139b6792 Signed-off-by: Eunki, Hong --- diff --git a/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.cpp b/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.cpp index 56ef741..d4aa1da 100644 --- a/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.cpp +++ b/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.cpp @@ -230,7 +230,10 @@ void FixedImageCache::ClearCache() } mReadyFlags.clear(); mLoadStates.assign(mImageUrls.size(), TextureManager::LoadState::NOT_STARTED); - mMaskingData->mAlphaMaskId = TextureManager::INVALID_TEXTURE_ID; + if(mMaskingData) + { + mMaskingData->mAlphaMaskId = TextureManager::INVALID_TEXTURE_ID; + } } void FixedImageCache::UploadComplete(