[NUI] Fix SVACE issue of null in ViewStyle.
authorzhouhao <haozhou.zhou@samsung.com>
Mon, 26 Feb 2024 05:18:19 +0000 (13:18 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 6 Mar 2024 08:30:36 +0000 (17:30 +0900)
src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs

index e927adc..57753e3 100755 (executable)
@@ -565,15 +565,14 @@ namespace Tizen.NUI.BaseComponents
         public override void CopyFrom(BindableObject other)
         {
             var source = other as ViewStyle;
-
-            IncludeDefaultStyle = source.IncludeDefaultStyle;
-            SolidNull = source.SolidNull;
-
             if (source == null || source.DirtyProperties == null || source.DirtyProperties.Count == 0)
             {
                 return;
             }
 
+            IncludeDefaultStyle = source.IncludeDefaultStyle;
+            SolidNull = source.SolidNull;
+
             BindableProperty.GetBindablePropertysOfType(GetType(), out var thisBindableProperties);
 
             if (thisBindableProperties == null)