Revert "[Tizen] CanvasView: Remove duplicate null check"
authorJoogab Yun <joogab.yun@samsung.com>
Tue, 20 Apr 2021 01:05:13 +0000 (10:05 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Tue, 20 Apr 2021 01:05:13 +0000 (10:05 +0900)
This reverts commit 113365ebc366e61e3c3ec31fea46282970a66916.

dali-csharp-binder/src/canvas_view.cpp

index f51c916..93db3a9 100644 (file)
@@ -39,6 +39,11 @@ SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_CanvasView_New__SWIG_0(char *jarg1) {
   Dali::ImageDimensions *argp1;
   Dali::Toolkit::CanvasView result;
 
+  if (!jarg1) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException,
+                                           "null string", 0);
+    return 0;
+  }
   argp1 = (Dali::ImageDimensions *)jarg1;
   if (!argp1) {
     SWIG_CSharpSetPendingExceptionArgument(
@@ -69,6 +74,11 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_CanvasView_AddDrawable(char *jarg1,
   Dali::CanvasRenderer::Drawable *argp2;
   bool result = true;
 
+  if (!jarg1 || !jarg2) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException,
+                                           "null string", 0);
+    return 0;
+  }
   argp1 = (Dali::Toolkit::CanvasView *)jarg1;
   if (!argp1) {
     SWIG_CSharpSetPendingExceptionArgument(