Fix NUI.View.GetId() native crash 51/212551/1
authordongsug.song <dongsug.song@samsung.com>
Fri, 23 Aug 2019 01:35:59 +0000 (10:35 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Fri, 23 Aug 2019 01:35:59 +0000 (10:35 +0900)
Change-Id: I58edfccd08be8b9a5a7fc2b0fa2f56200e5d303d
Signed-off-by: dongsug.song <dongsug.song@samsung.com>
dali-csharp-binder/src/dali_wrap.cpp

index c12c3c1..1349d7b 100755 (executable)
@@ -33802,6 +33802,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Actor_GetId(void * jarg1) {
   unsigned int result;
 
   arg1 = (Dali::Actor *)jarg1;
+
+  if(!arg1) {
+    DALI_LOG_ERROR("[ERROR] actor is null! return -1");
+    return -1;
+  }
+
   {
     try {
       result = (unsigned int)((Dali::Actor const *)arg1)->GetId();