From d952f2c63c70728ad1e67ef38a9218d0b7516319 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Mon, 22 May 2017 13:27:19 +0900 Subject: [PATCH] SVACE issue fix - merge from tizen branch Change-Id: If42c70c5c8d6dedc9b9e8610b2ee5d65ef82c87f Signed-off-by: dongsug.song --- src/Tizen.NUI/src/public/BaseComponents/View.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 2441ef9e8..bb691241b 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -905,7 +905,12 @@ namespace Tizen.NUI.BaseComponents /// A object which inherit View public static T DownCast(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) -- 2.34.1