From d8a12016f479cb287e340d3d4a42c672898a80a7 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Mon, 22 Nov 2021 17:09:56 +0900 Subject: [PATCH] [Tizen] Add error check code when ResizeSignal_Disconnect is called This reverts commit 2654ad932f439854cba319c906c31bcc45cdde2a. Change-Id: Ie40c231631533a27d5b9e7ac401304c9aa207310 --- dali-csharp-binder/src/window-wrap.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dali-csharp-binder/src/window-wrap.cpp b/dali-csharp-binder/src/window-wrap.cpp index 07526c7..821e61c 100644 --- a/dali-csharp-binder/src/window-wrap.cpp +++ b/dali-csharp-binder/src/window-wrap.cpp @@ -2136,6 +2136,12 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ResizeSignal_Disconnect(void * jarg1, vo arg1 = (Dali::Signal< void (Dali::Window, Dali::Window::WindowSize) > *)jarg1; arg2 = (void (*)(Dali::Window, Dali::Window::WindowSize))jarg2; + + if (arg1 == nullptr || arg2 == nullptr) { + DALI_LOG_ERROR("[ERR] arg1 == %p or arg2 == %p \n",arg1,arg2); + return; + } + { try { Dali_Signal_Sl_void_Sp_Dali_Window_WindowSize_SP__Sg__Disconnect(arg1,arg2); -- 2.7.4