SVACE issue fix
authordongsug.song <dongsug.song@samsung.com>
Mon, 22 May 2017 04:27:19 +0000 (13:27 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Wed, 31 May 2017 03:23:58 +0000 (12:23 +0900)
- merge from tizen branch

Change-Id: If42c70c5c8d6dedc9b9e8610b2ee5d65ef82c87f
Signed-off-by: dongsug.song <dongsug.song@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/View.cs

index 2441ef9e804ff8417bab3a55b28112db6fec3600..bb691241b79f40072e45dfaff0fa7f47020c32d5 100755 (executable)
@@ -905,7 +905,12 @@ namespace Tizen.NUI.BaseComponents
         /// <returns>A object which inherit View</returns>
         public static T DownCast<T>(View view) where T : View
         {
-            return (T)(ViewRegistry.GetViewFromActor(view));
+            View ret = ViewRegistry.GetViewFromActor(view);
+            if (ret != null)
+            {
+                return (T)ret;
+            }
+            return null;
         }
 
         private View ConvertIdToView(uint id)