[NUI] Fix Svace issue (#1167)
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Fri, 6 Dec 2019 02:01:04 +0000 (11:01 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 6 Dec 2019 02:01:04 +0000 (11:01 +0900)
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI.Components/Controls/Button.cs
src/Tizen.NUI.Components/Controls/DropDown.cs

index 7748276..da717b7 100755 (executable)
@@ -271,7 +271,10 @@ namespace Tizen.NUI.Components
                 {
                     Style.Text.PointSize = new Selector<float?>();
                 }
-                Style.Text.PointSize.All = value;
+                if (Style.Text.PointSize != null)
+                {
+                    Style.Text.PointSize.All = value;
+                }
             }
         }
 
index bd9a857..e6777a5 100755 (executable)
@@ -547,9 +547,9 @@ namespace Tizen.NUI.Components
 
             adapter.RemoveData(index);
 
-            if(index < dropDownMenuFullList.ChildCount)
+            if(index < dropDownMenuFullList?.ChildCount)
             {
-                View childToRemove = dropDownMenuFullList.GetChildAt((uint)index);
+                View childToRemove = dropDownMenuFullList?.GetChildAt((uint)index);
                 if (childToRemove)
                 {
                     childToRemove.TouchEvent -= ListItemTouchEvent;