e_test_event: Add null check of arguments on transient for below request 75/303475/1
authorJunseok Kim <juns.kim@samsung.com>
Thu, 28 Dec 2023 07:13:49 +0000 (16:13 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Thu, 28 Dec 2023 07:13:49 +0000 (16:13 +0900)
Change-Id: Ia1219176433060ef51abc5691f79e873bd432bcd

src/e_test_event.cpp

index 77e376d03534d60e8c96693881597712630ac295..4c362e8b7ce6ce6fab2e8b2df32ee320d33392e3 100644 (file)
@@ -518,6 +518,9 @@ etRunner::setWinTransientForBelow(etWin *tw_child,
    Eina_Bool accepted = EINA_FALSE;
    Eldbus_Pending *p = NULL;
 
+   EINA_SAFETY_ON_NULL_RETURN_VAL(tw_child, EINA_FALSE);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(tw_parent, EINA_FALSE);
+
    p = eldbus_proxy_call(dbus.ds_proxy,
                          "SetWindowTransientForBelow",
                          _cb_method_transient_for_below,