Fix to do not use SWIG_csharp_string_callback when input is null 45/319445/1
authorSeungho Baek <sbsh.baek@samsung.com>
Tue, 11 Feb 2025 07:13:00 +0000 (16:13 +0900)
committerSeungho Baek <sbsh.baek@samsung.com>
Tue, 11 Feb 2025 07:13:00 +0000 (16:13 +0900)
Change-Id: Ifa77904a2ba299142c56aa24d937545e50651169
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
dali-csharp-binder/common/dali-wrap.cpp

index c4d1a738ca180e7e33e2b2864cbde640742b9975..41087394add47467799b168439f0f4ec347c2395 100644 (file)
@@ -21550,10 +21550,13 @@ SWIGEXPORT Dali::Gesture * SWIGSTDCALL CSharp_Dali_PanGesture_SWIGUpcast(Dali::P
     return (Dali::Gesture *)jarg1;
 }
 
-
 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_GetEnvironmentVariable(char * jarg1) {
+  char * jresult = 0;
   const char * result = EnvironmentVariable::GetEnvironmentVariable(jarg1);
-  char * jresult = SWIG_csharp_string_callback((const char *)result);
+  if(result)
+  {
+    jresult = SWIG_csharp_string_callback((const char *)result);
+  }
   return jresult;
 }