Fix svace issue on text-visual 90/269890/1
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 21 Jan 2022 08:14:27 +0000 (17:14 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Fri, 21 Jan 2022 08:14:27 +0000 (17:14 +0900)
add null check

Change-Id: I8b98c0705a43a54e36d6aa316d4262ed52914af5
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/visuals/text/text-visual.cpp

index 7720aa2..b8d848d 100644 (file)
@@ -614,7 +614,7 @@ void TextVisual::CreateTextureSet(TilingInfo& info, Renderer& renderer, Sampler&
     ++textureSetIndex;
   }
 
-  if(styleEnabled && isOverlayStyle)
+  if(styleEnabled && isOverlayStyle && info.styleBuffer)
   {
     PixelData overlayStyleData = ConvertToPixelData(info.styleBuffer, info.width, info.height, info.offsetPosition, Pixel::RGBA8888);
     AddTexture(textureSet, overlayStyleData, sampler, textureSetIndex);