From: Sunghyun kim Date: Wed, 31 Jul 2019 01:01:03 +0000 (+0900) Subject: Add default size when creating Windows X-Git-Tag: dali_1.4.31~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git;a=commitdiff_plain;h=refs%2Fchanges%2F76%2F211176%2F2 Add default size when creating Windows Change-Id: Id3ca3978d083afd302e5d8fb6c4ea8d00c9d0b38 --- diff --git a/dali-csharp-binder/src/window.cpp b/dali-csharp-binder/src/window.cpp index 02a0fa1..5301df5 100755 --- a/dali-csharp-binder/src/window.cpp +++ b/dali-csharp-binder/src/window.cpp @@ -82,11 +82,14 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_New__SWIG_0(void * jarg1, char Dali::Window result; argp1 = (Dali::PositionSize *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::PositionSize", 0); - return 0; + if (!argp1) + { + arg1 = Dali::PositionSize(0, 0, 0, 0); + } + else + { + arg1 = *argp1; } - arg1 = *argp1; if (!jarg2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); return 0;