[NUI] Fix svace issue
authorzhouleonlei <zhouleon.lei@samsung.com>
Mon, 21 Mar 2022 01:31:56 +0000 (09:31 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 21 Mar 2022 04:41:22 +0000 (13:41 +0900)
src/Tizen.NUI/src/public/XamlBinding/XamlStyle.cs

index f1a9d74..473ef39 100755 (executable)
@@ -173,7 +173,7 @@ namespace Tizen.NUI.Binding
 
         static void OnBasedOnResourceChanged(BindableObject bindable, object oldValue, object newValue)
         {
-            XamlStyle style = (bindable as View).XamlStyle;
+            XamlStyle style = (bindable as View)?.XamlStyle;
             if (style == null)
                 return;
             style.UnApplyCore(bindable, (XamlStyle)oldValue);