evas canvas: + null check handling. 04/256304/2
authorHermet Park <chuneon.park@samsung.com>
Thu, 1 Apr 2021 04:30:47 +0000 (13:30 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 1 Apr 2021 04:32:25 +0000 (04:32 +0000)
Change-Id: I8f2348d77ee956e3ade808fcfe96be63864964cb

src/lib/evas/canvas/efl_canvas_vg_image.c

index 7da0e42..e6c235a 100644 (file)
@@ -84,9 +84,11 @@ _efl_canvas_vg_image_render_pre_tvg(EINA_UNUSED Evas_Object_Protected_Data *vg_p
 {
    int alpha;
    Tvg_Matrix trans_mat = { 0 };
-   Efl_Canvas_Vg_Image_Data *pd = nd->data;
 
    if (!nd || !nd->data) return;
+
+   Efl_Canvas_Vg_Image_Data *pd = nd->data;
+
    if (nd->flags != EFL_GFX_CHANGE_FLAG_NONE)
      {
         nd->flags = EFL_GFX_CHANGE_FLAG_NONE;