From: dongsug.song Date: Mon, 22 May 2017 04:27:19 +0000 (+0900) Subject: SVACE issue fix X-Git-Tag: nui_0.2.41~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F131836%2F1;p=platform%2Fcore%2Fcsapi%2Fnui.git SVACE issue fix - merge from tizen branch Change-Id: If42c70c5c8d6dedc9b9e8610b2ee5d65ef82c87f Signed-off-by: dongsug.song --- diff --git a/Tizen.NUI/src/public/BaseComponents/View.cs b/Tizen.NUI/src/public/BaseComponents/View.cs index 2441ef9..bb69124 100755 --- a/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/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)