evas gesture: improved safety 38/310738/2
authorPatryk Kaczmarek <patryk.k@partner.samsung.com>
Tue, 7 May 2024 11:03:46 +0000 (13:03 +0200)
committerChun <jykeon@samsung.com>
Thu, 9 May 2024 03:35:48 +0000 (03:35 +0000)
Change-Id: Id6da7de8979ee224f3c2976f5662815a8eea5cab

src/lib/evas/gesture/efl_canvas_gesture_custom.c

index 890bcc5..de894ab 100644 (file)
@@ -20,6 +20,9 @@ _efl_canvas_gesture_custom_gesture_name_set(Eo *obj EINA_UNUSED, Efl_Canvas_Gest
 EOLIAN static Eina_Stringshare *
 _efl_canvas_gesture_custom_gesture_name_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Custom_Data *pd)
 {
-   return pd->gesture_name;
+//TIZEN_ONLY(20240507): ++safety, null defect fix
+   if (pd) return pd->gesture_name;
+   return NULL;
+//
 }
 #include "efl_canvas_gesture_custom.eo.c"