[NUI] Fix svace issues
authorzhouleonlei <zhouleon.lei@samsung.com>
Mon, 30 May 2022 07:16:42 +0000 (15:16 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 30 May 2022 11:12:37 +0000 (20:12 +0900)
src/Tizen.NUI/src/public/Visuals/ArcVisual.cs
src/Tizen.NUI/src/public/Visuals/ColorVisual.cs

index b7e3528..d7e04cc 100755 (executable)
@@ -142,23 +142,23 @@ namespace Tizen.NUI
 
             base.ComposingPropertyMap();
             PropertyValue temp = new PropertyValue((int)Visual.Type.Arc);
-            _outputVisualMap.Add(Visual.Property.Type, temp);
+            _outputVisualMap?.Add(Visual.Property.Type, temp);
             temp.Dispose();
 
             temp = new PropertyValue(Thickness < 0.0f ? 0.0f : Thickness);
-            _outputVisualMap.Add(ArcVisualProperty.Thickness, temp);
+            _outputVisualMap?.Add(ArcVisualProperty.Thickness, temp);
             temp.Dispose();
 
             temp = new PropertyValue(StartAngle);
-            _outputVisualMap.Add(ArcVisualProperty.StartAngle, temp);
+            _outputVisualMap?.Add(ArcVisualProperty.StartAngle, temp);
             temp.Dispose();
 
             temp = new PropertyValue(SweepAngle);
-            _outputVisualMap.Add(ArcVisualProperty.SweepAngle, temp);
+            _outputVisualMap?.Add(ArcVisualProperty.SweepAngle, temp);
             temp.Dispose();
 
             temp = new PropertyValue((int)Cap);
-            _outputVisualMap.Add(ArcVisualProperty.Cap, temp);
+            _outputVisualMap?.Add(ArcVisualProperty.Cap, temp);
             temp.Dispose();
         }
 
index d2b5883..9b47807 100755 (executable)
@@ -85,11 +85,11 @@ namespace Tizen.NUI
                 base.ComposingPropertyMap();
 
                 PropertyValue temp = new PropertyValue((int)Visual.Type.Color);
-                _outputVisualMap.Add(Visual.Property.Type, temp);
+                _outputVisualMap?.Add(Visual.Property.Type, temp);
                 temp.Dispose();
 
                 temp = new PropertyValue(color);
-                _outputVisualMap.Add(ColorVisualProperty.MixColor, temp);
+                _outputVisualMap?.Add(ColorVisualProperty.MixColor, temp);
                 temp.Dispose();
             }
             else