[Tizen] to avoid native crash
authorminho.sun <minho.sun@samsung.com>
Tue, 1 Aug 2017 01:43:45 +0000 (10:43 +0900)
committerminho.sun <minho.sun@samsung.com>
Tue, 1 Aug 2017 01:47:25 +0000 (10:47 +0900)
This reverts commit c8b99b52bc44153277f13098baba24a070dbb4f0.

Change-Id: I8d7d3fe14d674695bed7c86a6d0a3d48b583cc21

packaging/csapi-nui.spec
src/Tizen.NUI/Tizen.NUI.csproj
src/Tizen.NUI/src/public/FocusManager.cs

index 3f444eb..3a6e032 100755 (executable)
@@ -5,7 +5,7 @@ Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0 and BSD-3-Clause and MIT
 URL:        https://www.tizen.org
-Source0:    %{name}-%{version}.tar.gz
+Source0:    %{name}-%{version}-pre1.tar.gz
 Source1:    %{name}.manifest
 
 AutoReqProv: no
index 99e5b91..1ba9baf 100755 (executable)
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">\r
 \r
   <PropertyGroup>\r
-    <Version>0.2.48-pre1</Version>\r
+    <Version>0.2.49-pre1</Version>\r
     <Authors>Samsung Electronics</Authors>\r
     <Copyright>© Samsung Electronics Co., Ltd All Rights Reserved</Copyright>\r
     <Description>\r
index 8eb6116..c528820 100755 (executable)
@@ -444,6 +444,11 @@ namespace Tizen.NUI
         /// <returns>Whether the focus is successful or not</returns>
         public bool SetCurrentFocusView(View view)
         {
+            if(view == null)
+            {
+                throw new ArgumentNullException("the target view should not be null");
+            }
+
             bool ret = NDalicManualPINVOKE.FocusManager_SetCurrentFocusActor(swigCPtr, View.getCPtr(view));
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;